Class: Parity::Backup

Inherits:
Object
  • Object
show all
Defined in:
lib/parity/backup.rb

Instance Method Summary collapse

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

#restoreObject



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