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

Instance Method Summary collapse

Instance Attribute Details

#sub_actionObject

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

Returns:

  • (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

Returns:

  • (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_presenceObject


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(options)
  check_sub_action_presence()
  return sub_action.configure(options)
end

#descriptor_requirementObject


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

#executeObject


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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (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

Returns:

  • (Boolean)

11
12
13
# File 'lib/fig/command/action/role/has_sub_action.rb', line 11

def sub_action?()
  true
end