Class: SystemStats::CapacityCollector
- Inherits:
-
Thor
- Object
- Thor
- SystemStats::CapacityCollector
- Defined in:
- lib/systemstats/capacity_collector.rb
Instance Method Summary collapse
Instance Method Details
#collect ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/systemstats/capacity_collector.rb', line 17 def collect file = get_output_file(.output_path, .output_file_prefix) if .start_delay puts "Delaying collection start by #{.start_delay} seconds" sleep(.start_delay) end start_capacity_collection(.interval_seconds, .max_runtime, file) end |
#version ⇒ Object
5 6 7 |
# File 'lib/systemstats/capacity_collector.rb', line 5 def version puts SystemStats::VERSION end |