Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
218 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# coding: utf-8 | ||
|
||
require 'fig/command/action' | ||
require 'fig/command/action/role/list_as_yaml' | ||
require 'fig/command/action/role/list_base_config' | ||
require 'fig/command/action/role/list_dependencies_from_data_structure' | ||
require 'fig/command/action/role/list_from_data_structure' | ||
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::YAML | ||
include Fig::Command::Action | ||
include Fig::Command::Action::Role::ListAsYAML | ||
include Fig::Command::Action::Role::ListBaseConfig | ||
include Fig::Command::Action::Role::ListDependenciesFromDataStructure | ||
include Fig::Command::Action::Role::ListFromDataStructure | ||
include Fig::Command::Action::Role::ListWalkingDependencyTree | ||
|
||
def options() | ||
return %w<--list-dependencies --list-yaml> | ||
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 apply_base_config?() | ||
return nil # don't care | ||
end | ||
end |
46 changes: 46 additions & 0 deletions
46
lib/fig/command/action/list_dependencies/yaml_all_configs.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# coding: utf-8 | ||
|
||
require 'fig/command/action' | ||
require 'fig/command/action/role/list_all_configs' | ||
require 'fig/command/action/role/list_as_yaml' | ||
require 'fig/command/action/role/list_dependencies_from_data_structure' | ||
require 'fig/command/action/role/list_from_data_structure' | ||
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::YAMLAllConfigs | ||
include Fig::Command::Action | ||
include Fig::Command::Action::Role::ListAllConfigs | ||
include Fig::Command::Action::Role::ListAsYAML | ||
include Fig::Command::Action::Role::ListDependenciesFromDataStructure | ||
include Fig::Command::Action::Role::ListFromDataStructure | ||
include Fig::Command::Action::Role::ListWalkingDependencyTree | ||
|
||
def options() | ||
return %w<--list-dependencies --list-yaml --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 apply_base_config?() | ||
return nil # don't care | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# coding: utf-8 | ||
|
||
require 'fig/command/action' | ||
require 'fig/command/action/role/list_as_yaml' | ||
require 'fig/command/action/role/list_base_config' | ||
require 'fig/command/action/role/list_from_data_structure' | ||
require 'fig/command/action/role/list_variables_from_data_structure' | ||
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::ListVariables; end | ||
|
||
class Fig::Command::Action::ListVariables::YAML | ||
include Fig::Command::Action | ||
include Fig::Command::Action::Role::ListAsYAML | ||
include Fig::Command::Action::Role::ListBaseConfig | ||
include Fig::Command::Action::Role::ListFromDataStructure | ||
include Fig::Command::Action::Role::ListVariablesFromDataStructure | ||
include Fig::Command::Action::Role::ListWalkingDependencyTree | ||
|
||
def options() | ||
return %w<--list-variables --list-yaml> | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# coding: utf-8 | ||
|
||
require 'fig/command/action' | ||
require 'fig/command/action/role/list_all_configs' | ||
require 'fig/command/action/role/list_as_yaml' | ||
require 'fig/command/action/role/list_from_data_structure' | ||
require 'fig/command/action/role/list_variables_from_data_structure' | ||
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::ListVariables; end | ||
|
||
class Fig::Command::Action::ListVariables::YAMLAllConfigs | ||
include Fig::Command::Action | ||
include Fig::Command::Action::Role::ListAllConfigs | ||
include Fig::Command::Action::Role::ListAsYAML | ||
include Fig::Command::Action::Role::ListFromDataStructure | ||
include Fig::Command::Action::Role::ListVariablesFromDataStructure | ||
include Fig::Command::Action::Role::ListWalkingDependencyTree | ||
|
||
def options() | ||
return %w<--list-variables --list-yaml --list-all-configs> | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# coding: utf-8 | ||
|
||
require 'yaml' | ||
|
||
module Fig; end | ||
class Fig::Command; end | ||
module Fig::Command::Action; end | ||
module Fig::Command::Action::Role; end | ||
|
||
# Requires a #set_up_object_to_be_serialized method. | ||
module Fig::Command::Action::Role::ListAsYAML | ||
def execute() | ||
set_up_object_to_be_serialized | ||
|
||
YAML.dump @object_to_be_serialized, $stdout | ||
|
||
return Fig::Command::Action::EXIT_SUCCESS | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters