Class: Fig::Command::Action::HelpLong

Inherits:
Object
  • Object
show all
Includes:
Fig::Command::Action, Role::HasNoSubAction
Defined in:
lib/fig/command/action/help_long.rb

Constant Summary

Constants included from Fig::Command::Action

EXIT_FAILURE, EXIT_SUCCESS

Instance Attribute Summary

Attributes included from Fig::Command::Action

#execution_context

Instance Method Summary collapse

Methods included from Role::HasNoSubAction

#sub_action?

Methods included from Fig::Command::Action

#allow_both_descriptor_and_file?, #apply_base_config?, #apply_config?, #base_package_can_come_from_descriptor?, #cares_about_asset_options?, #descriptor_requirement, #list_dependencies?, #list_variables?, #load_base_package?, #modifies_repository?, #prepare_repository, #primary_option, #publish?, #register_base_package?, #remote_operation_necessary?, #reset_environment?, #retrieves_should_happen?

Instance Method Details

#configure(options) ⇒ Object



20
21
22
# File 'lib/fig/command/action/help_long.rb', line 20

def configure(options)
  @help_message = options.full_help_message
end

#executeObject



24
25
26
27
28
# File 'lib/fig/command/action/help_long.rb', line 24

def execute()
  puts @help_message

  return EXIT_SUCCESS
end

#execute_immediately_after_command_line_parse?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/fig/command/action/help_long.rb', line 16

def execute_immediately_after_command_line_parse?
  return true
end

#optionsObject



12
13
14
# File 'lib/fig/command/action/help_long.rb', line 12

def options()
  return %w<--help-long>
end