Sha256: e3ad8159f5239f0828811cbf99a5131b07b86bc6b3f12913aa655134f2b7b03d
Contents?: true
Size: 633 Bytes
Versions: 1
Compression:
Stored size: 633 Bytes
Contents
module Caco::Repmgr class Conf < Trailblazer::Operation step ->(ctx, **) { ctx[:path] = "/etc/repmgr.conf" }, id: :build_path step :build_content step Subprocess(Caco::FileWriter), input: ->(_ctx, path:, content:, **) {{ path: path, content: content }}, output: {file_created: :created, file_changed: :changed} def build_content(ctx, node_id:, node_name:, postgres_version:, **) ctx[:content] = Caco::Repmgr::Cell::Conf.( node_id: node_id, node_name: node_name, postgres_version: postgres_version ).to_s end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caco-0.1.0 | lib/caco/repmgr/conf.rb |