Class: BuildTool::Commands::CLI

Inherits:
SubCommands show all
Defined in:
lib/build-tool/commands/modules.rb

Instance Attribute Summary

Attributes inherited from Base

#cmd, #options, #parent

Instance Method Summary collapse

Methods inherited from SubCommands

#add_command, #complete_arguments, #complete_command, #do_complete, #execute, #get_command, #help_commands, #initialize, #load_commands, #show_help

Methods inherited from Base

#<=>, #cleanup_after_vcs_access, #complete_arguments, #complete_readline, #configuration, #debug, #debug2, #do_complete, #do_execute, #each_option, #error, #execute, #fullname, #info, #initialize, #log?, #quiet, #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::SubCommands

Instance Method Details

#applicable?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/build-tool/commands/modules.rb', line 16

def applicable?
    BuildTool::Application.instance.has_recipe?
end

#initialize_optionsObject



12
13
14
# File 'lib/build-tool/commands/modules.rb', line 12

def initialize_options
    super
end