Created
July 31, 2014 19:37
-
-
Save danielsdeleo/9659725b399a9d12f8ef to your computer and use it in GitHub Desktop.
Revisions
-
danielsdeleo created this gist
Jul 31, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ Firstly, the primary apps in ChefDK use executables generated by appbundler: * chef (chef-client/knife/etc.) * berks * chef-dk (the `chef` tool) * TK The appbundler code is here: https://github.com/opscode/appbundler/ and the README explains what it does and why. You can see the executables that appbundler generates in `/opt/chefdk/bin` (there are other executables in there, but the executables for the primary apps are the appbundler ones). The primary apps in ChefDK all live in the "apps" directory, in `/opt/chefdk/embedded/apps`. So, how do you run a custom fork/branch/whatever of one of these apps? The exact steps depend on how much you've changed. In any case, blow away the code in `/opt/chefdk/embedded/apps/$APP`, and replace it with the code you want to use. If you have not modified any of the app's dependencies, then this should just work. If you have modified the dependencies, then you need to `bundle install` and then re-run appbundler. Here's how omnibus does it when it creates the package: https://github.com/opscode/omnibus-chef/blob/bcb11dedec46e62c833ab55871434b2ba62d1ce1/config/software/chefdk.rb#L83