Method: Backup::Database::Redis#connectivity_options
- Defined in:
- lib/backup/database/redis.rb
#connectivity_options ⇒ Object
Builds the Redis connectivity options syntax to connect the user to perform the database dumping process
50 51 52 53 54 |
# File 'lib/backup/database/redis.rb', line 50 def %w[host port socket].map do |option| next if send(option).nil?; "-#{option[0,1]} '#{send(option)}'" end.compact.join("\s") end |