Method: Backup::Database::PostgreSQL#connectivity_options

Defined in:
lib/backup/database/postgresql.rb

#connectivity_optionsObject



102
103
104
105
106
107
108
109
# File 'lib/backup/database/postgresql.rb', line 102

def connectivity_options
  return "--host='#{ socket }'" if socket

  opts = []
  opts << "--host='#{ host }'" if host
  opts << "--port='#{ port }'" if port
  opts.join(' ')
end