Sha256: 2083231008f67416d7342926e4c64ba82ffff1703b08197add57ce228e4d5ad9
Contents?: true
Size: 1007 Bytes
Versions: 1
Compression:
Stored size: 1007 Bytes
Contents
class Caco::Prometheus::ExporterInstall < Trailblazer::Operation step :check_root step Subprocess(Caco::Downloader), input: ->(ctx, url:, tar_dest_path:, **) {{ url: url, dest: tar_dest_path, stubbed_file: ctx[:stubbed_file] }} step Subprocess(Caco::Unpacker), input: ->(ctx, tar_dest_path:, tar_unpack_path:, **) {{ pack: tar_dest_path, dest: tar_unpack_path }} step Subprocess(Caco::FileLink), input: ->(ctx, current_target:, current_link:, **) {{ target: current_target, link: current_link }} step Subprocess(Caco::Debian::ServiceInstall), input: ->(ctx, service_name:, service_command:, environment_vars: nil, environment_file: nil, **) {{ name: service_name, command: service_command, environment_vars: environment_vars, environment_file: environment_file }} def check_root(ctx, **) ctx[:root] = Settings.prometheus.root FileUtils.mkdir_p(Settings.prometheus.root) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caco-0.1.0 | lib/caco/prometheus/exporter_install.rb |