|
| 1 | +# Running octocatalog-diff from a branch |
| 2 | + |
| 3 | +When we are assisting with troubleshooting, or implementing a feature you've requested, we may ask you to run `octocatalog-diff` from a non-master branch to try it out. |
| 4 | + |
| 5 | +This document is intended for people who may not be familiar with git, GitHub, and/or ruby. If you already know how to do this in another way, feel free! |
| 6 | + |
| 7 | +## Installation |
| 8 | + |
| 9 | +1. Determine the branch name. If there's an open Pull Request, you can see the branch name near the top of the page. |
| 10 | + |
| 11 | +  |
| 12 | + |
| 13 | +2. Clone the `octocatalog-diff` repository in your home directory. From the command line: |
| 14 | + |
| 15 | + ``` |
| 16 | + cd $HOME |
| 17 | + git clone https://github.com/github/octocatalog-diff.git |
| 18 | + ``` |
| 19 | + |
| 20 | +3. Change into the directory created by your checkout: |
| 21 | + |
| 22 | + ``` |
| 23 | + cd $HOME/octocatalog-diff |
| 24 | + ``` |
| 25 | + |
| 26 | +4. Check out the branch you wish to use, filling in the branch name you determined in the first step: |
| 27 | + |
| 28 | + ``` |
| 29 | + git checkout BRANCH_NAME_FROM_STEP_1 |
| 30 | + ``` |
| 31 | + |
| 32 | +5. Bootstrap the repository to pull in dependencies: |
| 33 | + |
| 34 | + ``` |
| 35 | + ./script/bootstrap |
| 36 | + ``` |
| 37 | + |
| 38 | +6. Optional but recommended - run the test suite: |
| 39 | + |
| 40 | + ``` |
| 41 | + rake |
| 42 | + ``` |
| 43 | + |
| 44 | +## Use |
| 45 | + |
| 46 | +Now that you have `octocatalog-diff` checked out and bootstrapped, it's time to use it. |
| 47 | + |
| 48 | +We've created a wrapper script to make this easier for you. |
| 49 | + |
| 50 | +1. Change directories to the location where you ordinarily run `octocatalog-diff` (for example: in your Puppet repository). |
| 51 | + |
| 52 | + ``` |
| 53 | + cd /etc/puppetlabs/code |
| 54 | + ``` |
| 55 | +
|
| 56 | +2. Run the `script/octocatalog-diff-wrapper` script from *this* checkout. For example, if you checked out `octocatalog-diff` to your home directory, you could use: |
| 57 | +
|
| 58 | + ``` |
| 59 | + $HOME/octocatalog-diff/script/octocatalog-diff-wrapper <options> |
| 60 | + ``` |
| 61 | +
|
| 62 | +:warning: Note: If you are requesting our help, please use the debug option (`-d`) to display debugging information. |
0 commit comments