Class: BuildTool::Commands::Configuration::Edit

Inherits:
Standard
  • Object
show all
Defined in:
lib/build-tool/commands/configuration/edit.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

#<=>, #cleanup_after_vcs_access, #complete_arguments, #complete_readline, #configuration, #debug, #debug2, #do_complete, #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::Standard

Instance Method Details

#applicable?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/build-tool/commands/configuration/edit.rb', line 27

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

#do_execute(args) ⇒ Object



31
32
33
# File 'lib/build-tool/commands/configuration/edit.rb', line 31

def do_execute( args )
    return edit_config_options( args )
end

#edit_config_options(only) ⇒ Object



35
36
37
# File 'lib/build-tool/commands/configuration/edit.rb', line 35

def edit_config_options( only )
    return BuildTool::Configuration.edit( only )
end

#initialize_optionsObject



20
21
22
23
24
25
# File 'lib/build-tool/commands/configuration/edit.rb', line 20

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