module Fig::Command::Action::Role::ListDependenciesInATree

Public Instance Methods

execute() click to toggle source
# File lib/fig/command/action/role/list_dependencies_in_a_tree.rb, line 11
def execute()
  walk_dependency_tree(
    @execution_context.base_package, base_display_config_names()
  ) do
    |package, config_name, depth|

    print ' ' * (depth * 4)
    puts package.to_s_with_config(config_name)
  end

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