X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=plugins%2Fmcollective%2Fapplication%2Fhelp.rb;fp=plugins%2Fmcollective%2Fapplication%2Fhelp.rb;h=09395eb138271224e3cdb44f1a4a8e636014777d;hb=b87d2f4e68281062df1913440ca5753ae63314a9;hp=0000000000000000000000000000000000000000;hpb=ab0ea530b8ac956091f17b104ab2311336cfc250;p=packages%2Fprecise%2Fmcollective.git diff --git a/plugins/mcollective/application/help.rb b/plugins/mcollective/application/help.rb new file mode 100644 index 0000000..09395eb --- /dev/null +++ b/plugins/mcollective/application/help.rb @@ -0,0 +1,28 @@ +module MCollective + class Application::Help 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