Sha256: 9a0d325ce4d243a58225f7d1c9fbeace6069bc8e2a699494744587fdd211b41c

Contents?: true

Size: 646 Bytes

Versions: 2

Compression:

Stored size: 646 Bytes

Contents

#!/usr/bin/env ruby

# end result is there is one container created and
# start will always go into that container until it is
# destroy
# Taking the vagrant model

require_relative '../lib/dockdev'

#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, user_config: uconf, root: Dir.getwd)
rescue StandardError => ex
  STDERR.puts ex.message
  STDERR.puts ex.backtrace.join("\n")
end


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dockdev-0.4.2 exe/dockdev
dockdev-0.4.1 exe/dockdev