Sha256: 3905456f50d7692e913842c08871b80532435746744a2a663b0e5cf106af4fd2

Contents?: true

Size: 599 Bytes

Versions: 2

Compression:

Stored size: 599 Bytes

Contents

#!/usr/bin/env ruby

require_relative '../lib/dockerun'

require 'colorize'

# Operations
# 1. [i]nit - Copy sample spec into project dir
# 2. [r]un - Run the spec (default without params)
# 3. [d]elete [c]ontainer - Delete container (using image name inside spec)
# 4. [d]elete [i]mage - Delete image (Using container name inside spec)
# 5. reset - Delete container and image

cli = Dockerun::CliEngine.new
begin
  cli.parse_argv(ARGV)
rescue TR::ArgUtils::RequiredFieldEmpty => ex
  STDERR.puts "\n Operation requires parameter. Error was : #{ex.message}".red
  puts cli.parse_argv(["help"])
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dockerun-0.4.2 exe/dockerun
dockerun-0.4.1 exe/dockerun