Class: BuildTool::Commands::Recipes::List

Inherits:
Standard show all
Defined in:
lib/build-tool/commands/recipes/list.rb

Overview

BuildCommand

Instance Attribute Summary

Attributes inherited from Base

#cmd, #options, #parent

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_arguments, #complete_readline, #configuration, #debug, #debug2, #do_complete, #each_option, #error, #execute, #fullname, #info, #initialize, #log?, #setup_command, #setup_options, #show_help, #skip_command, #summarize, #teardown_command, #trace, #usage, #verbose, #warn

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



24
25
26
27
28
29
30
31
# File 'lib/build-tool/commands/recipes/list.rb', line 24

def do_execute( args )
    recipes = Recipe.all_recipes
    recipes.keys.sort.each do |name|
        info( format( "%-20s - %s", name, recipes[name].short_description ) )
    end

    return 0
end

#initialize_optionsObject



17
18
19
20
21
22
# File 'lib/build-tool/commands/recipes/list.rb', line 17

def initialize_options
    options.banner = "Usage: #{self.fullname} [OPTIONS]..."
    options.separator( "" )
    options.separator( "Options" )
    super
end