Class: Backup::FileBackupError
Instance Attribute Summary collapse
-
#app_files_dir ⇒ Object
readonly
Returns the value of attribute app_files_dir.
-
#backup_tarball ⇒ Object
readonly
Returns the value of attribute backup_tarball.
Instance Method Summary collapse
-
#initialize(app_files_dir, backup_tarball) ⇒ FileBackupError
constructor
A new instance of FileBackupError.
- #message ⇒ Object
Constructor Details
#initialize(app_files_dir, backup_tarball) ⇒ FileBackupError
Returns a new instance of FileBackupError.
9 10 11 12 |
# File 'lib/backup.rb', line 9 def initialize(app_files_dir, backup_tarball) @app_files_dir = app_files_dir @backup_tarball = backup_tarball end |
Instance Attribute Details
#app_files_dir ⇒ Object (readonly)
Returns the value of attribute app_files_dir.
7 8 9 |
# File 'lib/backup.rb', line 7 def app_files_dir @app_files_dir end |
#backup_tarball ⇒ Object (readonly)
Returns the value of attribute backup_tarball.
7 8 9 |
# File 'lib/backup.rb', line 7 def backup_tarball @backup_tarball end |
Instance Method Details
#message ⇒ Object
14 15 16 |
# File 'lib/backup.rb', line 14 def "Failed to create compressed file '#{backup_tarball}' when trying to backup the following paths: '#{app_files_dir}'" end |