Class: Prometheus::Collector::Extensions::Once

Inherits:
Base
  • Object
show all
Defined in:
lib/prometheus/collector/extensions.rb

Direct Known Subclasses

HTTPRequests

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#errback, #log, #run

Class Method Details

.installObject



59
60
61
62
# File 'lib/prometheus/collector/extensions.rb', line 59

def install
  logger.info "Install #{name.to_sym}"
  Prometheus::Collector::Extensions.register name.to_sym, new
end

Instance Method Details

#callObject



65
66
67
68
# File 'lib/prometheus/collector/extensions.rb', line 65

def call
  log 'Installing Runner Once'
  run
end

#callbackObject



70
71
72
# File 'lib/prometheus/collector/extensions.rb', line 70

def callback
  proc { log 'Finished Installing Runner Once' }
end