Module: Fig::Command::Action::Role::ListDependenciesFlat

Included in:
ListDependencies::AllConfigs, ListDependencies::Default
Defined in:
lib/fig/command/action/role/list_dependencies_flat.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/fig/command/action/role/list_dependencies_flat.rb', line 11

def execute()
  packages = gather_package_dependency_configurations()

  if packages.empty? and $stdout.tty?
    puts '<no dependencies>'
  else
    strings = derive_package_strings(packages)

    puts strings.uniq.sort.join("\n")
  end

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