Code Monkey home page Code Monkey logo

Comments (2)

russellshackleford avatar russellshackleford commented on August 19, 2024

I am not sure where to place this diff. It changes sensu-install, but that change is only needed because of sensu-omnibus. This allows me to run sensu-install --plugins sensu-plugins-aws --clear-sources --source https://private.repo --source https://rubygems.org without failure:

--- /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-1.7.0/exe/sensu-install	2019-03-18 22:59:34.000000000 +0000
+++ sensu-install	2019-03-21 22:39:02.056970142 +0000
@@ -33,8 +33,12 @@
           opts.on("-E", "--extensions EXTENSION[,EXT]", "EXTENSION or comma-delimited list of Sensu extensions to install") do |extensions|
             options[:extensions].concat(extensions.split(","))
           end
+          opts.on("--clear-sources", "Clear the gem sources") do
+            options[:clearsources] = true
+          end
           opts.on("-s", "--source SOURCE", "Install Sensu plugins and extensions from a custom SOURCE") do |source|
-            options[:source] = source
+            options[:source] ||= []
+            options[:source] << source
           end
           opts.on("-c", "--clean", "Clean up (remove) other installed versions of the plugin(s) and/or extension(s)") do
             options[:clean] = true
@@ -73,7 +77,12 @@
         gem_command << " --version '#{gem_version}'" if gem_version
         gem_command << " --no-ri --no-rdoc"
         gem_command << " --verbose" if options[:verbose]
-        gem_command << " --source #{options[:source]}" if options[:source]
+        gem_command << " --clear-sources" if options[:clearsources]
+        if options[:source]
+          options[:source].each do |src|
+            gem_command << " --source #{src}"
+          end
+        end
         gem_command << " --http-proxy #{options[:proxy]}" if options[:proxy]
         log gem_command if options[:verbose]
         unless system(gem_command)

from sensu-omnibus.

amdprophet avatar amdprophet commented on August 19, 2024

Closing as Sensu Classic is EOL. Please switch to Sensu Go.

from sensu-omnibus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.