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
mcollective-client-2.8.0 lib/mcollective/application/help.rb