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

Version Path
vagrant-windows-1.6.0 lib/vagrant-windows/scripts/cheftaskrun.ps1.erb
vagrant-windows-1.6.0.pre.1 lib/vagrant-windows/scripts/cheftaskrun.ps1.erb
vagrant-windows-1.5.1 lib/vagrant-windows/scripts/cheftaskrun.ps1.erb
vagrant-windows-1.5.0 lib/vagrant-windows/scripts/cheftaskrun.ps1.erb
vagrant-windows-1.4.0 lib/vagrant-windows/scripts/cheftaskrun.ps1.erb
vagrant-windows-1.3.2 lib/vagrant-windows/scripts/cheftaskrun.ps1.erb
vagrant-windows-1.3.1 lib/vagrant-windows/scripts/cheftaskrun.ps1.erb
vagrant-windows-1.3.0 lib/vagrant-windows/scripts/cheftaskrun.ps1.erb