Class: NodeHeartbeat::CLI

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

Instance Method Summary collapse

Instance Method Details

#startObject



12
13
14
15
16
# File 'lib/node_heartbeat/cli.rb', line 12

def start
  $stdout.sync = true
  require 'node_heartbeat/run_heartbeat'
  RunHeartbeat.call(bucket: options[:bucket])
end

#versionObject



6
7
8
# File 'lib/node_heartbeat/cli.rb', line 6

def version
  say NodeHeartbeat::VERSION.to_s
end