Class: Caco::Repmgr::Conf

Inherits:
Trailblazer::Operation
  • Object
show all
Defined in:
lib/caco/repmgr/conf.rb

Instance Method Summary collapse

Instance Method Details

#build_content(ctx, node_id:, node_name:, postgres_version:) ⇒ Object



17
18
19
20
21
22
23
# File 'lib/caco/repmgr/conf.rb', line 17

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