Module: Shnell::Backup
- Included in:
- Shnell
- Defined in:
- lib/shnell/backup.rb
Defined Under Namespace
Classes: BackupScript
Class Attribute Summary collapse
-
.behavior ⇒ Object
Returns the value of attribute behavior.
Instance Method Summary collapse
- #backup(filename, &block) ⇒ Object
- #restore(filename, &block) ⇒ Object
- #service(filename, &block) ⇒ Object
Class Attribute Details
.behavior ⇒ Object
Returns the value of attribute behavior.
4 5 6 |
# File 'lib/shnell/backup.rb', line 4 def behavior @behavior end |
Instance Method Details
#backup(filename, &block) ⇒ Object
102 103 104 |
# File 'lib/shnell/backup.rb', line 102 def backup(filename, &block) BackupScript.backup filename, &block end |
#restore(filename, &block) ⇒ Object
106 107 108 |
# File 'lib/shnell/backup.rb', line 106 def restore(filename, &block) BackupScript.restore filename, &block end |