Sha256: dee974c6b76d766186aa8cf21183694286944c10e1abeec8d61c2830f7083b52

Contents?: true

Size: 547 Bytes

Versions: 14

Compression:

Stored size: 547 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] %>"
  del "<%= options[:chef_task_running] %>"
}

exit $exitCode

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
vagrant-plugin-dummy-0.0.7 windows/scripts/cheftaskrun.ps1.erb
vagrant-plugin-dummy-0.0.6 windows/scripts/cheftaskrun.ps1.erb
vagrant-plugin-dummy-0.0.5 windows/scripts/cheftaskrun.ps1.erb
vagrant-windows-1.3.0.pre.3 lib/vagrant-windows/scripts/cheftaskrun.ps1.erb
vagrant-windows-1.3.0.pre.2 lib/vagrant-windows/scripts/cheftaskrun.ps1.erb
vagrant-windows-1.3.0.pre.1 lib/vagrant-windows/scripts/cheftaskrun.ps1.erb
vagrant-windows-1.2.3 lib/vagrant-windows/scripts/cheftaskrun.ps1.erb
vagrant-windows-1.2.2 lib/vagrant-windows/scripts/cheftaskrun.ps1.erb
vagrant-plugin-dummy-0.0.4 windows/scripts/cheftaskrun.ps1.erb
vagrant-plugin-dummy-0.0.3 windows/scripts/cheftaskrun.ps1.erb
vagrant-windows-1.2.1 lib/vagrant-windows/scripts/cheftaskrun.ps1.erb
vagrant-plugin-dummy-0.0.1 windows/scripts/cheftaskrun.ps1.erb
vagrant-plugin-dummy-0.0.2 windows/scripts/cheftaskrun.ps1.erb
vagrant-windows-1.2.0 lib/vagrant-windows/scripts/cheftaskrun.ps1.erb