Sha256: ab50c6d4032b0b76b71aee4db7f8e33013455556a97c2ebc3f0643d1be47487b

Contents?: true

Size: 700 Bytes

Versions: 41

Compression:

Stored size: 700 Bytes

Contents

module MCollective
  class Application::Help<Application
    description "Application list and help"
    usage "rpc help [application name]"

    def post_option_parser(configuration)
      configuration[:application] = ARGV.shift if ARGV.size > 0
    end

    def main
      if configuration.include?(:application)
        puts Applications[configuration[:application]].help
      else
        puts "The Marionette Collective version #{MCollective.version}"
        puts

        Applications.list.sort.each do |app|
          begin
            puts "  %-15s %s" % [app, Applications[app].application_description]
          rescue
          end
        end

        puts
      end
    end
  end
end

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
choria-mcorpc-support-2.22.1 lib/mcollective/application/help.rb
choria-mcorpc-support-2.22.0 lib/mcollective/application/help.rb
choria-mcorpc-support-2.21.1 lib/mcollective/application/help.rb
choria-mcorpc-support-2.21.0 lib/mcollective/application/help.rb
choria-mcorpc-support-2.20.8 lib/mcollective/application/help.rb
mcollective-client-2.12.5 lib/mcollective/application/help.rb
choria-mcorpc-support-2.20.7 lib/mcollective/application/help.rb
choria-mcorpc-support-2.20.6 lib/mcollective/application/help.rb
choria-mcorpc-support-2.20.5 lib/mcollective/application/help.rb
choria-mcorpc-support-2.20.4 lib/mcollective/application/help.rb
choria-mcorpc-support-2.20.3 lib/mcollective/application/help.rb
choria-mcorpc-support-2.20.2 lib/mcollective/application/help.rb
choria-mcorpc-support-2.20.0 lib/mcollective/application/help.rb
choria-mcorpc-support-0.0.1 lib/mcollective/application/help.rb
mcollective-client-2.12.4 lib/mcollective/application/help.rb
mcollective-client-2.12.3 lib/mcollective/application/help.rb
mcollective-client-2.12.1 lib/mcollective/application/help.rb
mcollective-client-2.12.0 lib/mcollective/application/help.rb
mcollective-client-2.10.6 lib/mcollective/application/help.rb
mcollective-client-2.11.4 lib/mcollective/application/help.rb