Module: Fig::Command::Action::Role::ListVariablesInATree

Included in:
ListVariables::Tree, ListVariables::TreeAllConfigs
Defined in:
lib/fig/command/action/role/list_variables_in_a_tree.rb

Defined Under Namespace

Classes: VariableTreePackageConfig

Instance Method Summary collapse

Instance Method Details

#apply_config?Boolean

Returns:

  • (Boolean)

25
26
27
# File 'lib/fig/command/action/role/list_variables_in_a_tree.rb', line 25

def apply_config?()
  return nil # don't care
end

#descriptor_requirementObject


13
14
15
# File 'lib/fig/command/action/role/list_variables_in_a_tree.rb', line 13

def descriptor_requirement()
  return nil
end

#executeObject


29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/fig/command/action/role/list_variables_in_a_tree.rb', line 29

def execute()
  # We can't just display as we walk the dependency tree because we need to
  # know in advance how many configurations we're going display under
  # another.
  tree = build_variable_tree()

  tree.child_configs().each do
    |child|

    display_variable_tree_level(child, '', '')
  end

  return Fig::Command::Action::EXIT_SUCCESS
end

#load_base_package?Boolean

Returns:

  • (Boolean)

17
18
19
# File 'lib/fig/command/action/role/list_variables_in_a_tree.rb', line 17

def load_base_package?()
  return true
end

#register_base_package?Boolean

Returns:

  • (Boolean)

21
22
23
# File 'lib/fig/command/action/role/list_variables_in_a_tree.rb', line 21

def register_base_package?()
  return nil # don't care
end