Sha256: d9873816749d125b5e2f1bb9d40dfe49fdab0c28317321bb7e4b751e722cb0e5
Contents?: true
Size: 609 Bytes
Versions: 8
Compression:
Stored size: 609 Bytes
Contents
$exitCode = -1 Set-ExecutionPolicy Unrestricted -force; Try { "running" | Out-File "<%= options[:chef_task_running] %>" $process = (Start-Process "<%= options[:chef_binary_path] %>" -ArgumentList "<%= options[:chef_arguments] %>" -NoNewWindow -PassThru -Wait -RedirectStandardOutput "<%= options[:chef_stdout_log] %>" -RedirectStandardError "<%= options[:chef_stderr_log] %>") $exitCode = $process.ExitCode } Finally { $exitCode | Out-File "<%= options[:chef_task_exitcode] %>" if (Test-Path "<%= options[:chef_task_running] %>") { del "<%= options[:chef_task_running] %>" } } exit $exitCode
Version data entries
8 entries across 8 versions & 1 rubygems