lib/cide/cli.rb in cide-0.9.0 vs lib/cide/cli.rb in cide-0.9.1
- old
+ new
@@ -88,11 +88,18 @@
runner.run!
## Export ##
return unless options.export
banner 'Export'
+
+ guest_dir = options.guest_export_dir || config.export_dir
+ if guest_dir.nil?
+ puts "Ignoring, missing export_dir"
+ return
+ end
+
runner.export!(
- guest_dir: options.guest_export_dir || config.export_dir,
+ guest_dir: guest_dir,
host_dir: options.export_dir || config.export_dir,
)
rescue Docker::Error => ex
exit ex.exitstatus
rescue RuntimeError => ex