lib/cukeq/slave.rb in cukeq-0.0.1.dev vs lib/cukeq/slave.rb in cukeq-0.0.1.dev2

- old
+ new

@@ -22,20 +22,24 @@ opts[:broker] = DEFAULT_BROKER_URI end new( Broker.new(opts[:broker]), - ScenarioRunner.new + ScenarioRunner.new(opts[:repos]) ) end def parse(argv) options = {} argv.extend(OptionParser::Arguable) argv.options do |opts| opts.on("-b", "--broker URI (default: #{DEFAULT_BROKER_URI})") do |b| options[:broker] = URI.parse(b) + end + + opts.on("-r", "--repos DIRECTORY (default: #{CukeQ.root})") do |dir| + options[:repos] = dir end end.parse! options end