bin/contexto in contexto-0.1.0 vs bin/contexto in contexto-0.1.1

- old
+ new

@@ -6,18 +6,22 @@ require 'rubygems' require 'contexto' require 'optparse' require 'English' +$stderr.sync = true + options = {} options[:cluster] = 'sandbox' +options[:ssh] = false optparse = OptionParser.new do |opts| opts.banner = 'Usage: contexto [options]' opts.on('-c', '--cluster CLUSTER', 'Cluster') { |v| options[:cluster] = v } opts.on('-s', '--service SERVICE', 'Service') { |v| options[:service] = v } opts.on('-t', '--container CONTAINER', 'Container') { |v| options[:container] = v } + opts.on('-b', '--ssh') { options[:ssh] = true } end begin optparse.parse! mandatory = [:cluster] @@ -30,6 +34,6 @@ puts optparse exit end c = Contexto::Contextualize.new(options) -c.show +c.run