Sha256: cea85aecc9464754ff6dd942364ce6ca501ac004f28a25f1c7bbc369b3a233e7
Contents?: true
Size: 853 Bytes
Versions: 3
Compression:
Stored size: 853 Bytes
Contents
require 'thor' module ConsulBridge class CLI < Thor desc 'version', 'Print out the version string' def version require 'consul_bridge/version' say ConsulBridge::VERSION.to_s end desc 'start', 'Start the bridge' option :bucket, aliases: '-b', required: true, type: :string, banner: '<s3_bucket>' option :container_name, aliases: '-n', required: true, type: :string, banner: '<container_name>' option :join_all, aliases: '-a', type: :boolean, default: false option :verbose, aliases: '-v', type: :boolean, default: false def start $stdout.sync = true require 'consul_bridge/run_bridge' RunBridge.call( bucket: options[:bucket], container_name: options[:container_name], join_all: options[:join_all], verbose: options[:verbose] ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
consul_bridge-0.1.5 | lib/consul_bridge/cli.rb |
consul_bridge-0.1.4 | lib/consul_bridge/cli.rb |
consul_bridge-0.1.3 | lib/consul_bridge/cli.rb |