Sha256: cb797ec2a098d227e91a5dfe4e71dc19b257f04fb294b60e64cbf6aac763ad2c

Contents?: true

Size: 594 Bytes

Versions: 5

Compression:

Stored size: 594 Bytes

Contents

#!/usr/bin/env ruby

require 'tty/prompt'
require 'colorize'

require_relative '../lib/docker/cli'

pmt = TTY::Prompt.new
# dc-update docker-compose.yml.tmp docker-compose.yml
begin
  STDOUT.puts "\n Docker Cli version #{Docker::Cli::VERSION}".green
  Docker::Cli::DockerComposer.new.parse_argv(ARGV) do |key, *val|
    case key
    when :prompt_docker_mount_root
      pmt.ask(" Please provide the root to mount inside docker : ", required: true, default: '/opt')
    end
  end
rescue TTY::Reader::InputInterrupt
rescue ArgsParser::ArgParserException => ex
  STDERR.puts ex.message.red
end



Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
docker-cli-0.5.4 exe/dc-update
docker-cli-0.5.3 exe/dc-update
docker-cli-0.5.2 exe/dc-update
docker-cli-0.5.1 exe/dc-update
docker-cli-0.5.0 exe/dc-update