class Construqt::Flavour::Ubuntu::EtcNetworkVrrp::Vrrp
Public Class Methods
new()
click to toggle source
# File lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb, line 404 def initialize @masters = [] @backups = [] end
Public Instance Methods
add_backup(backup)
click to toggle source
# File lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb, line 414 def add_backup(backup) @backups << backup self end
add_master(master)
click to toggle source
# File lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb, line 409 def add_master(master) @masters << master self end
render(lines, direction)
click to toggle source
# File lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb, line 419 def render(lines, direction) lines.map do |line| [ " logger '#{direction}#{line}'", " #{line}" ] end.join("\n") end
render_backups()
click to toggle source
# File lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb, line 432 def render_backups render(@backups, 'STOPPING:') end
render_masters()
click to toggle source
# File lib/construqt/flavour/ubuntu/flavour_ubuntu_result.rb, line 428 def render_masters render(@masters, 'STARTING:') end