Class: SystemStats::CapacityCollector

Inherits:
Thor
  • Object
show all
Defined in:
lib/systemstats/capacity_collector.rb

Instance Method Summary collapse

Instance Method Details

#collectObject



17
18
19
20
21
22
23
24
# File 'lib/systemstats/capacity_collector.rb', line 17

def collect
  file = get_output_file(options.output_path, options.output_file_prefix)
  if options.start_delay
    puts "Delaying collection start by #{options.start_delay} seconds"
    sleep(options.start_delay)
  end
  start_capacity_collection(options.interval_seconds, options.max_runtime, file)
end

#versionObject



5
6
7
# File 'lib/systemstats/capacity_collector.rb', line 5

def version
  puts SystemStats::VERSION
end