Class: BuildTool::Commands::Recipes::List
- Defined in:
- lib/build-tool/commands/recipes/list.rb
Overview
BuildCommand
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Standard
#complete_module, #complete_modules, #initialize, #log_directory, #while_logging_to
Methods inherited from Base
#<=>, #applicable?, #cleanup_after_vcs_access, #complete, #complete_arguments, #complete_readline_1_8, #complete_readline_1_9, #configuration, #do_complete_1_8, #do_complete_1_9, #each_option, #execute, #fullname, #initialize, #log?, #say, #setup_command, #show_help, #skip_command, #summarize, #teardown_command, #usage
Methods included from HelpText
#cmdalias, #description, included, #long_description, #name
Constructor Details
This class inherits a constructor from BuildTool::Commands::Standard
Instance Method Details
#do_execute(args) ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/build-tool/commands/recipes/list.rb', line 20 def do_execute( args ) recipes = Recipe.all_recipes recipes.keys.sort.each do |name| say format( "%-20s - %s", name, recipes[name].short_description ) end return 0 end |
#initialize_options ⇒ Object
15 16 17 18 |
# File 'lib/build-tool/commands/recipes/list.rb', line 15 def @options. = "Usage: #{Pathname.new($0).basename} #{self.fullname}" super end |