Module: Fig::Command::Action::Role::ListAsYAML

Included in:
ListDependencies::YAML, ListDependencies::YAMLAllConfigs, ListVariables::YAML, ListVariables::YAMLAllConfigs
Defined in:
lib/fig/command/action/role/list_as_yaml.rb

Overview

Requires a #set_up_object_to_be_serialized method.

Instance Method Summary collapse

Instance Method Details

#executeObject



12
13
14
15
16
17
18
# File 'lib/fig/command/action/role/list_as_yaml.rb', line 12

def execute()
  set_up_object_to_be_serialized

  YAML.dump @object_to_be_serialized, $stdout

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