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)


23
24
25
# File 'lib/fig/command/action/role/list_variables_in_a_tree.rb', line 23

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

#descriptor_requirementObject



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

def descriptor_requirement()
  return nil
end

#executeObject



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

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)


15
16
17
# File 'lib/fig/command/action/role/list_variables_in_a_tree.rb', line 15

def load_base_package?()
  return true
end

#register_base_package?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/fig/command/action/role/list_variables_in_a_tree.rb', line 19

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