This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Recipe: <REDACTED> | |
* file[C:\Windows/system32/cmd.exe] action create[2013-12-26T18:38:07-05:00] INFO: Processing file[C:\Windows/system32/cmd.exe] action create (symp | |
================================================================================ | |
Error executing action `create` on resource 'file[C:\Windows/system32/cmd.exe]' | |
================================================================================ | |
Chef::Exceptions::Win32APIError | |
------------------------------- | |
The operation completed successfully. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ENV['DOESEXIST'] = "original value" | |
log "#{ENV['DOESNOTEXIST']}" | |
log "#{ENV['DOESEXIST']}" | |
execute "test script" do | |
command "echo %DOESEXIST% %DOESNOTEXIST% > out.txt" | |
environment ({ 'DOESEXIST' => "new value" , 'DOESNOTEXIST' => 'first value ever' }) | |
end | |
# Inspect out.txt, it should say 'new value first value ever' but will say 'old value first value ever' |