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

- old
+ new

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