lib/shaddox/shadow_script.rb in shaddox-0.0.20 vs lib/shaddox/shadow_script.rb in shaddox-0.0.21

- old
+ new

@@ -2,17 +2,18 @@ class ShadowScript attr_reader :script def initialize(config, task_key, opts = {}) # Initialize properties @installer = opts[:installer] + @debug = opts[:debug] @config = config @cast_tasks = [] # Generate script params = [] params += ":installer => :#{@installer}" if @installer - params += ":debug => :#{opts[:debug]}" if opts[:debug] + params += ":debug => #{@debug}" if @debug @script = %Q{ require 'shaddox' Shaddox::Shadow.new({#{params.join(',')}}) do ## begin generated shadow ##