Sha256: c346d76ef5f6d691e83d5207b0ba28966467a471fe292aaf91e05c96f61e0e35

Contents?: true

Size: 441 Bytes

Versions: 1

Compression:

Stored size: 441 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]

begin
  Dockdev.with_running_container(contName, command: cmd, root: Dir.getwd)
rescue StandardError => ex
  STDERR.puts ex.message
  STDERR.puts ex.backtrace.join("\n")
end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dockdev-0.4.0 exe/dockdev