Module: Fig::Command::Action::Role::ListAsJSON

Included in:
ListDependencies::JSON, ListDependencies::JSONAllConfigs, ListVariables::JSON, ListVariables::JSONAllConfigs
Defined in:
lib/fig/command/action/role/list_as_json.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_json.rb', line 12

def execute()
  set_up_object_to_be_serialized

  puts JSON.pretty_generate @object_to_be_serialized

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