Class: Parity::Backup
- Inherits:
-
Object
- Object
- Parity::Backup
- Defined in:
- lib/parity/backup.rb
Instance Method Summary collapse
-
#initialize(args) ⇒ Backup
constructor
A new instance of Backup.
- #restore ⇒ Object
Constructor Details
#initialize(args) ⇒ Backup
Returns a new instance of Backup.
5 6 7 |
# File 'lib/parity/backup.rb', line 5 def initialize(args) @from, @to = args.values_at(:from, :to) end |
Instance Method Details
#restore ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/parity/backup.rb', line 9 def restore if to == 'development' restore_to_development else restore_to_pass_through end end |