Class: Gts::DumpCommand
- Defined in:
- lib/gts/commands/dump_command.rb
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
Methods inherited from Command
execute, known_commands_descriptions, register
Instance Method Details
#execute ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/gts/commands/dump_command.rb', line 10 def execute dump = Gts.storage.dump if dump dump.map{|l| JSON.parse(l) }.to_json else [].to_json end end |