lib/wyrm/restore.rb in wyrm-0.3.1 vs lib/wyrm/restore.rb in wyrm-0.3.2
- old
+ new
@@ -20,9 +20,11 @@
include Wyrm::SchemaTools
include Wyrm::Logger
def initialize( container, dst_db, pump: nil, drop_tables: false )
@container = Pathname.new container
+ fail "#{@container} does not exist" unless @container.exist?
+
@dst_db = maybe_deebe dst_db
@pump = make_pump( @dst_db, pump )
options.drop_tables = drop_tables
end