lib/org-converge/command.rb in org-converge-0.0.16 vs lib/org-converge/command.rb in org-converge-0.0.17

- old
+ new

@@ -9,10 +9,11 @@ def initialize(options) @options = options @dotorg = options['<org_file>'] @root_dir = options['--root-dir'] + @dir = options['--dir'] @run_dir = if @root_dir File.expand_path(File.join(@root_dir, 'run')) else File.expand_path('run') end @@ -366,9 +367,10 @@ return end end end + script[:header][:dir] = @dir if @dir if script[:header][:procs] procs = script[:header][:procs].to_i 1.upto(procs) do |i| proc_name = "#{display_name}:#{i}" engine.register proc_name, cmd, { :cwd => @root_dir, :logger => logger, :header => script[:header] }