/
all_configs.rb
46 lines (36 loc) · 1.08 KB
/
all_configs.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# coding: utf-8
require 'fig/command/action'
require 'fig/command/action/role/list_all_configs'
require 'fig/command/action/role/list_dependencies_flat'
require 'fig/command/action/role/list_walking_dependency_tree'
module Fig; end
class Fig::Command; end
module Fig::Command::Action; end
class Fig::Command::Action::ListDependencies; end
class Fig::Command::Action::ListDependencies::AllConfigs
include Fig::Command::Action
include Fig::Command::Action::Role::ListAllConfigs
include Fig::Command::Action::Role::ListDependenciesFlat
include Fig::Command::Action::Role::ListWalkingDependencyTree
def options()
return %w<--list-dependencies --list-all-configs>
end
def descriptor_requirement()
return nil
end
def load_base_package?()
return true
end
def register_base_package?()
return nil # don't care
end
def apply_config?
return nil # don't care
end
def derive_package_strings(packages)
return packages.keys.collect do
|package|
packages[package].collect {|config| package.to_s_with_config(config)}
end.flatten
end
end