lib/polytrix/runners/executor.rb in polytrix-0.1.0 vs lib/polytrix/runners/executor.rb in polytrix-0.1.1

- old
+ new

@@ -13,19 +13,21 @@ property :stderr, required: true end module Executor attr_writer :executor + attr_accessor :env def executor @executor ||= if RUBY_PLATFORM == 'java' Polytrix::Runners::BuffShellOutExecutor.new else Polytrix::Runners::MixlibShellOutExecutor.new end end def execute(command, opts = {}) + opts[:env] = env unless env.nil? executor.execute(command, opts) end end end end