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