Sha256: d488b19c931e09e53f2f4eeb63faa5b424df39b84734c368c173ce6691e20e9f

Contents?: true

Size: 679 Bytes

Versions: 13

Compression:

Stored size: 679 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 'tty/prompt'
require 'colorize'

require_relative '../lib/dockdev'

contName = ARGV.first || File.basename(Dir.getwd)

begin
  tty = TTY::Prompt.new

  skip = tty.no? "Destroy development env '#{contName}'?"
  if not skip
    Dockdev.destroy(contName, root: Dir.getwd)
    STDOUT.puts "\n Docker development environment destroy successfully\n\n".green
  else
    STDOUT.puts "\n Docker development environment destroy aborted\n\n".yellow
  end
rescue StandardError => ex
  STDERR.puts ex.message.red
end


Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
dockdev-0.4.2 exe/dockdev-destroy
dockdev-0.4.1 exe/dockdev-destroy
dockdev-0.4.0 exe/dockdev-destroy
dockdev-0.3.8 exe/dockdev-destroy
dockdev-0.3.7 exe/dockdev-destroy
dockdev-0.3.6 exe/dockdev-destroy
dockdev-0.3.5 exe/dockdev-destroy
dockdev-0.3.4 exe/dockdev-destroy
dockdev-0.3.3 exe/dockdev-destroy
dockdev-0.3.2 exe/dockdev-destroy
dockdev-0.3.1 exe/dockdev-destroy
dockdev-0.3.0 exe/dockdev-destroy
dockdev-0.2.0 exe/dockdev-destroy