lib/autowatchr.rb in harmon-autowatchr-0.1.5 vs lib/autowatchr.rb in harmon-autowatchr-0.1.6
- old
+ new
@@ -155,13 +155,13 @@
end
end
if !passing.empty?
if passing.length > 1
- if @config.run_method == :individual
- predicate = "'#{passing.join("' '")}'"
+ if @config.run_method == :load
+ predicate = "-e \"%w[#{passing.join(" ")}].each { |file| load file }\""
else
- predicate = "-e \"%w[#{passing.join(" ")}].each do |f| require f end\""
+ predicate = "-e \"%w[#{passing.join(" ")}].each { |file| require file }\""
end
else
predicate = passing[0]
end
commands.unshift(@config.eval_command(predicate))