Class: DdsClient::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/dds_client/cli.rb

Instance Method Summary collapse

Instance Method Details

#heartbeatObject



8
9
10
11
# File 'lib/dds_client/cli.rb', line 8

def heartbeat
  c = DdsClient::Api.create_from_env
  puts(c.heartbeat.to_json)
end

#listObject



14
15
16
17
# File 'lib/dds_client/cli.rb', line 14

def list
  c = DdsClient::Api.create_from_env
  puts(c.list_containers.to_json)
end