A little help when you want to update an appbundled project inside ChefDK.
- You need to have a pre-existing ChefDK installation in either
/opt/chefdk
(for Unix-like distros) or%SYSTEMDRIVE%\opscode\chefdk
(for Windows distros). - You need to have the
git
command in your PATH. - You need patience if this doesn't work out of the box every time :)
Clone this repository with and enter the project directory:
git clone https://github.com/fnichol/chefdk-update-app.git
cd chefdk-update-app
Choose a ChefDK "app" to update. If you don't need a list of options, run the help command.
For Unix distros:
./bin/chefdk-update-app.sh --help
For Windows distros from PowerShell:
& bin\chefdk-update-app.bat --help
Choose a Git reference to update your app to. This could be a branch name, tag, SHA hash, or even "master"
.
Run it!
For example, to update the "test-kitchen"
app to release "v1.4.0.beta.2"
(note that this project puts a "v"
in front of release tags),
For Unix distros:
sudo -E ./bin/chefdk-update-app.sh test-kitchen -r v1.4.0.beta.2
For Windows distros from PowerShell:
& bin\chefdk-update-app.bat test-kitchen -r v1.4.0.beta.2
- Source hosted at GitHub
- Report issues/questions/feature requests on GitHub Issues
Pull requests are very welcome! Make sure your patches are well tested. Ideally create a topic branch for every separate change you make. For example:
- Fork the repo
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Created and maintained by Fletcher Nichol (fnichol@nichol.ca)
Apache 2.0 (see LICENSE.txt)