Class: Backup::DatabaseBackupError
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#db_file_name ⇒ Object
readonly
Returns the value of attribute db_file_name.
Instance Method Summary collapse
-
#initialize(config, db_file_name) ⇒ DatabaseBackupError
constructor
A new instance of DatabaseBackupError.
- #message ⇒ Object
Constructor Details
#initialize(config, db_file_name) ⇒ DatabaseBackupError
Returns a new instance of DatabaseBackupError.
22 23 24 25 |
# File 'lib/backup.rb', line 22 def initialize(config, db_file_name) @config = config @db_file_name = db_file_name end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
20 21 22 |
# File 'lib/backup.rb', line 20 def config @config end |
#db_file_name ⇒ Object (readonly)
Returns the value of attribute db_file_name.
20 21 22 |
# File 'lib/backup.rb', line 20 def db_file_name @db_file_name end |
Instance Method Details
#message ⇒ Object
27 28 29 |
# File 'lib/backup.rb', line 27 def "Failed to create compressed file '#{db_file_name}' when trying to backup the main database:\n - host: '#{config[:host]}'\n - port: '#{config[:port]}'\n - database: '#{config[:database]}'" end |