lib/ruby/terraform/execution_support.rb in rake-terraform-wrapper-0.1.0 vs lib/ruby/terraform/execution_support.rb in rake-terraform-wrapper-0.2.0

- old
+ new

@@ -16,10 +16,12 @@ if opts[:show_command] formatter = proc do |severity, datetime, progname, msg| "#{msg}\n" end - shellout_opts[:logger] = Logger.new(STDERR, formatter: formatter) + logger = Logger.new(STDERR, formatter: formatter) + shellout_opts[:logger] = logger + loger.info("Running command inside directory: #{shellout_opts[:cwd]}") if shellout_opts[:cwd] end cmd = Mixlib::ShellOut.new(command, shellout_opts) cmd.run_command cmd.error!