exe/dockdev in dockdev-0.4.0 vs exe/dockdev in dockdev-0.4.1
- old
+ new
@@ -5,14 +5,19 @@
# destroy
# Taking the vagrant model
require_relative '../lib/dockdev'
-contName = ARGV.first || File.basename(Dir.getwd)
-cmd = ARGV[1]
+#contName = ARGV.first || File.basename(Dir.getwd)
+#cmd = ARGV[1]
+#input = ARGV[1]
+uconf = Dockdev::UserConfig.new(ARGV.first)
+contName = uconf.container_name || File.basename(Dir.getwd)
+
begin
- Dockdev.with_running_container(contName, command: cmd, root: Dir.getwd)
+ #Dockdev.with_running_container(contName, command: cmd, root: Dir.getwd)
+ Dockdev.with_running_container(contName, user_config: uconf, root: Dir.getwd)
rescue StandardError => ex
STDERR.puts ex.message
STDERR.puts ex.backtrace.join("\n")
end