Class: MetricsSatellite::HotspotsCollector

Inherits:
Collector
  • Object
show all
Defined in:
lib/metrics_satellite/collectors/hotspots_collector.rb

Constant Summary

Constants included from Filer

Filer::EXT

Instance Attribute Summary

Attributes inherited from Collector

#options

Instance Method Summary collapse

Methods inherited from Collector

#initialize, #run, underscore

Constructor Details

This class inherits a constructor from MetricsSatellite::Collector

Instance Method Details

#collectObject



3
4
5
6
7
8
9
10
11
# File 'lib/metrics_satellite/collectors/hotspots_collector.rb', line 3

def collect
  system(
    "hotspots",
    "--repository", repository_path,
    "--cutoff", options[:hotspots_cutoff] || "10",
    "--time", options[:hotspots_time] || "14",
    :out => file
  )
end