Sha256: 8ea8cd8ba6e417e79047afa841eea84b12d2e1b7f7eff7801de9b3cc727d22ff

Contents?: true

Size: 558 Bytes

Versions: 1

Compression:

Stored size: 558 Bytes

Contents

set -e

# main
main() {
  url=`curl -s "https://api.github.com/repos/jdmundrawala/chef-appbundle-updater/releases/latest" | \
    "$chef_omnibus_root/embedded/bin/ruby" -rjson -e 'j=JSON.parse(STDIN.read); puts j["assets"][0]["browser_download_url"]'`
  sudo "$chef_omnibus_root/bin/chef-client" -z --recipe-url "$url" -j "$json" -o "recipe[chef-appbundle-updater::default]"
}

# augment path in an attempt to find a download program
PATH="${PATH}:/opt/local/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/sfw/bin";
export PATH;

main

Version data entries

1 entries across 1 versions & 1 rubygems

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