On 12/12/2013 08:08 PM, Jeff Bachtel wrote:
> :commands => [ 'powershell.exe', [ ENV['PATH'],
> 'C:\Windows\System32\Powershell1.0' ] ]
> 
> BUT, and thanks to the powershell exec provider, I found a totally
> usable pattern:

s/usable/horrible/ ;-)

I think the example you sketched above is preferable.

Is ENV['PATH'] being an array specific to Windows? For a UNIX provider,
this would simply become

:commands => [ 'java', "/opt/java:#{ENV['PATH']}" ] # right?

Much cleaner, I feel.

Cheers,
Felix

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-dev/52AAD7D5.5070105%40alumni.tu-berlin.de.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to