Sha256: a861b57b405bbda69da7d4f00db7a2c2c280c93d5b6d3e9b95383190cbb3ef61

Contents?: true

Size: 562 Bytes

Versions: 1

Compression:

Stored size: 562 Bytes

Contents

$ErrorActionPreference = "Stop";

Function Log($m) { Write-Host "       $m`n" }

Log "Finding cookbook to update chef"
$env:Path = $env:Path + ";$chef_omnibus_root\bin\"
$response = Invoke-WebRequest "https://api.github.com/repos/jdmundrawala/chef-appbundle-updater/releases/latest"
$url = ($response.Content | ConvertFrom-Json).assets[0].browser_download_url
Log "Running chef-client with recipe chef-appbundle-updater::default from $url"
& "$chef_omnibus_root\bin\chef-client.bat" -z --recipe-url "$url" -j "$json" -o "recipe[chef-appbundle-updater::default]"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kitchen-appbundle-updater-0.0.1 support/chef_base_updater.ps1