bin/jflow_worker in jflow-0.2.9 vs bin/jflow_worker in jflow-0.3.0

- old
+ new

@@ -1,14 +1,12 @@ #!/usr/bin/env ruby require "jflow" require "optparse" -opts = {} +opts = {:file => "worker.json"} OptionParser.new do |opt| opt.on('-f filename') { |o| opts[:file] = o } end.parse! - -raise "You need to specify a file!" unless opts[:file] configuration = JSON.parse(File.read(opts[:file])) cli = JFlow::Cli.new(configuration)