Class: PrometheusExporterHcloudSd::CLI

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.exit_on_failure?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/prometheus_exporter_hcloud_sd.rb', line 11

def self.exit_on_failure?
  true
end

Instance Method Details

#discoverObject



55
56
57
# File 'lib/prometheus_exporter_hcloud_sd.rb', line 55

def discover
  puts PrometheusExporterHcloudSd::DiscoveryConfig.generate(options)
end