Module: Fig::Command::Action::Role::HasSubAction
- Included in:
- ListDependencies, ListVariables
- Defined in:
- lib/fig/command/action/role/has_sub_action.rb
Instance Attribute Summary collapse
-
#sub_action ⇒ Object
Returns the value of attribute sub_action.
Instance Method Summary collapse
- #apply_base_config? ⇒ Boolean
- #apply_config? ⇒ Boolean
- #check_sub_action_presence ⇒ Object
- #configure(options) ⇒ Object
- #descriptor_requirement ⇒ Object
- #execute ⇒ Object
- #execution_context=(context) ⇒ Object
- #load_base_package? ⇒ Boolean
- #modifies_repository? ⇒ Boolean
- #register_base_package? ⇒ Boolean
- #sub_action? ⇒ Boolean
Instance Attribute Details
#sub_action ⇒ Object
Returns the value of attribute sub_action.
9 10 11 |
# File 'lib/fig/command/action/role/has_sub_action.rb', line 9 def sub_action @sub_action end |
Instance Method Details
#apply_base_config? ⇒ Boolean
46 47 48 49 |
# File 'lib/fig/command/action/role/has_sub_action.rb', line 46 def apply_base_config?() check_sub_action_presence() return sub_action.apply_base_config? end |
#apply_config? ⇒ Boolean
41 42 43 44 |
# File 'lib/fig/command/action/role/has_sub_action.rb', line 41 def apply_config?() check_sub_action_presence() return sub_action.apply_config? end |
#check_sub_action_presence ⇒ Object
15 16 17 18 19 |
# File 'lib/fig/command/action/role/has_sub_action.rb', line 15 def check_sub_action_presence() return if sub_action raise 'Bug in code. Sub-action missing.' end |
#configure(options) ⇒ Object
51 52 53 54 |
# File 'lib/fig/command/action/role/has_sub_action.rb', line 51 def configure() check_sub_action_presence() return sub_action.configure() end |
#descriptor_requirement ⇒ Object
21 22 23 24 |
# File 'lib/fig/command/action/role/has_sub_action.rb', line 21 def descriptor_requirement() check_sub_action_presence() return sub_action.descriptor_requirement() end |
#execute ⇒ Object
61 62 63 64 |
# File 'lib/fig/command/action/role/has_sub_action.rb', line 61 def execute() check_sub_action_presence() return sub_action.execute() end |
#execution_context=(context) ⇒ Object
56 57 58 59 |
# File 'lib/fig/command/action/role/has_sub_action.rb', line 56 def execution_context=(context) check_sub_action_presence() sub_action.execution_context = context end |
#load_base_package? ⇒ Boolean
31 32 33 34 |
# File 'lib/fig/command/action/role/has_sub_action.rb', line 31 def load_base_package?() check_sub_action_presence() return sub_action.load_base_package? end |
#modifies_repository? ⇒ Boolean
26 27 28 29 |
# File 'lib/fig/command/action/role/has_sub_action.rb', line 26 def modifies_repository?() check_sub_action_presence() return sub_action.modifies_repository? end |
#register_base_package? ⇒ Boolean
36 37 38 39 |
# File 'lib/fig/command/action/role/has_sub_action.rb', line 36 def register_base_package?() check_sub_action_presence() return sub_action.register_base_package? end |
#sub_action? ⇒ Boolean
11 12 13 |
# File 'lib/fig/command/action/role/has_sub_action.rb', line 11 def sub_action?() true end |