Class: Siba::Restore

Inherits:
Object
  • Object
show all
Includes:
FilePlug, KernelPlug, LoggerPlug
Defined in:
lib/siba/restore.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from KernelPlug

#siba_kernel, siba_kernel, siba_kernel=

Methods included from FilePlug

#siba_file, siba_file, siba_file=

Methods included from LoggerPlug

close, create, logger, #logger, opened?

Instance Attribute Details

#current_sourceObject

Returns the value of attribute current_source.



9
10
11
# File 'lib/siba/restore.rb', line 9

def current_source
  @current_source
end

Instance Method Details

#restore(path_to_options_yml, current_source) ⇒ Object



11
12
13
14
15
16
# File 'lib/siba/restore.rb', line 11

def restore(path_to_options_yml, current_source)
  @current_source = current_source
  run_restore path_to_options_yml
ensure
  Siba.cleanup
end