Class: JamesBond::Core::HelpMission
- Inherits:
-
Object
- Object
- JamesBond::Core::HelpMission
- Includes:
- Mission
- Defined in:
- lib/james_bond/core/help_mission.rb
Constant Summary collapse
- MISSION_NAME =
"help"
- MISSION_MAIN_COMMANDS =
["help"]
Instance Attribute Summary
Attributes included from Mission
#core_mission_config, #core_mission_options, #option_rules
Instance Method Summary collapse
Methods included from Mission
#arguments_parser, #initialize, #run_command
Instance Method Details
#build(config, params) ⇒ Object
11 12 13 14 |
# File 'lib/james_bond/core/help_mission.rb', line 11 def build(config, params) config.name = MISSION_NAME config.main_commands = MISSION_MAIN_COMMANDS end |
#run_help_command(command:, mission_pool:) ⇒ Object
16 17 18 19 20 21 |
# File 'lib/james_bond/core/help_mission.rb', line 16 def run_help_command(command:, mission_pool:) mission_pool.mission_list.each do |mission| puts mission.core_mission_config.name puts mission.option_rules end end |