class MonitoringReporter::CLI

Simple CLI for monitoringreporter

Public Instance Methods

report() click to toggle source
# File lib/monitoringreporter/cli.rb, line 107
def report
  opts = options.dup
  rep = MonitoringReporter::Reporter.new.send(opts['source'], opts) \
    unless opts['simulation']
  rep.report unless opts['simulation']
end
version() click to toggle source
# File lib/monitoringreporter/cli.rb, line 24
def version
  puts "MonitoringReporter version #{MonitoringReporter::VERSION}"
end