module Postgres::Clone::CommandLine
Public Instance Methods
build_command(command, sudo: false, user: nil)
click to toggle source
# File lib/postgres/clone/command_line.rb, line 8 def build_command(command, sudo: false, user: nil) if sudo "sudo#{user.nil? ? '' : " -u #{user}"} #{command}" else command end end
log_command(host_name, command)
click to toggle source
# File lib/postgres/clone/command_line.rb, line 16 def log_command(host_name, command) log_message(Rainbow("[#{host_name}] Executing: #{command}").darkgray) end