Method: Backup::Database::MySQL#connectivity_options

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

#connectivity_optionsObject

Builds the MySQL connectivity options syntax to connect the user to perform the database dumping process



73
74
75
76
77
78
# File 'lib/backup/database/mysql.rb', line 73

def connectivity_options
  %w[host port socket].map do |option|
    next if send(option).nil? or (send(option).respond_to?(:empty?) and send(option).empty?)
    "--#{option}='#{send(option)}'"
  end.compact.join("\s")
end