Sha256: 8166d1300e243135d80411cef39b5a8a925770f8fd95baee6e0a9f86d572eb8b
Contents?: true
Size: 693 Bytes
Versions: 3
Compression:
Stored size: 693 Bytes
Contents
require 'daemon_runner/shell_out' module Cassandra module Utils module CLI class Base attr_reader :command, :stdout def cwd '/tmp' end def timeout 300 end def runner @command ||= DaemonRunner::ShellOut.new(command: command, cwd: cwd, timeout: timeout) end def output raise NotImplementedError, 'Must implement this in a subclass' end def run! runner @command.run! @stdout = @command.stdout out = output Utils::Statsd.new(metric_name).to_dd(out).push! out end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cassandra-utils-0.4.1 | lib/cassandra/utils/cli/base.rb |
cassandra-utils-0.4.0 | lib/cassandra/utils/cli/base.rb |
cassandra-utils-0.3.2 | lib/cassandra/utils/cli/base.rb |