module Fig::Command::Action::Role::ListAsJSON

Requires a set_up_object_to_be_serialized method.

Public Instance Methods

execute() click to toggle source
# 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