class Caco::Prometheus::Install
Public Instance Methods
build_url(ctx, version:, root:, **)
click to toggle source
# File lib/caco/prometheus/install.rb, line 9 def build_url(ctx, version:, root:, **) ctx[:url] = "https://github.com/prometheus/prometheus/releases/download/v#{version}/prometheus-#{version}.linux-amd64.tar.gz" ctx[:dest] = "#{root}/prometheus-#{version}.linux-amd64.tar.gz" ctx[:current_target] = "#{root}/prometheus-#{version}.linux-amd64" ctx[:current_link] = "#{root}/prometheus-current" ctx[:config_file_path] = "#{Settings.prometheus.config_root}/prometheus.yml" end
check_root(ctx, **)
click to toggle source
# File lib/caco/prometheus/install.rb, line 3 def check_root(ctx, **) ctx[:root] = Settings.prometheus.root FileUtils.mkdir_p(Settings.prometheus.root) end