Sha256: cf744a124a6f6f07e1534ba734d532b172f6fb9ab79107dbe5f6aeb166bee280
Contents?: true
Size: 363 Bytes
Versions: 1
Compression:
Stored size: 363 Bytes
Contents
class Caco::Haproxy::ConfGet < Trailblazer::Operation step Subprocess(Caco::FileReader), input: ->(_ctx, **) {{ path: "/etc/default/haproxy", }}, output: [:output] step ->(ctx, name:, output:, **) { match = output.match(/^#{name}=\"(.*)\"/) return false unless match ctx[:value] = match[1] }, id: :find_value end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caco-0.1.0 | lib/caco/haproxy/conf_get.rb |