Class: Fig::Command::Action::Help

Inherits:
Object
  • Object
show all
Includes:
Fig::Command::Action, Role::HasNoSubAction
Defined in:
lib/fig/command/action/help.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


22
23
24
# File 'lib/fig/command/action/help.rb', line 22

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

#executeObject


26
27
28
29
30
# File 'lib/fig/command/action/help.rb', line 26

def execute()
  puts @help_message

  return EXIT_SUCCESS
end

#execute_immediately_after_command_line_parse?Boolean

Returns:

  • (Boolean)

18
19
20
# File 'lib/fig/command/action/help.rb', line 18

def execute_immediately_after_command_line_parse?
  return true
end

#optionsObject


14
15
16
# File 'lib/fig/command/action/help.rb', line 14

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