Class: Caco::Prometheus::ExporterInstall

Inherits:
Trailblazer::Operation
  • Object
show all
Defined in:
lib/caco/prometheus/exporter_install.rb

Instance Method Summary collapse

Instance Method Details

#check_root(ctx) ⇒ Object



31
32
33
34
# File 'lib/caco/prometheus/exporter_install.rb', line 31

def check_root(ctx, **)
  ctx[:root] = Settings.prometheus.root
  FileUtils.mkdir_p(Settings.prometheus.root)
end