You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During normal operation, `octocatalog-diff` runs certain scripts or commands from the underlying operating system. For example, it may run `git` to check out a certain code branch, and run `puppet` to build a catalog.
6
+
7
+
Each external script is found within the [`scripts`](/scripts) directory.
8
+
9
+
## How to override scripts
10
+
11
+
### Command line option
12
+
13
+
It is possible to override these scripts with customized versions. To do this, specify a directory that contains replacement scripts via the command line:
Within the override script path you've configured, place a file with the same name as the built-in script. For example, if you wish to override the `git-extract.sh` script with a custom version, also name your script `git-extract.sh`. (Do NOT create subdirectories within the override directory.)
30
+
31
+
If you specify an override script path but a particular script is not present there, octocatalog-diff will default to the built-in script. This means that you do not need to create unmodified copies of the built-in scripts. Only override the scripts you need to change.
32
+
33
+
### Notes
34
+
35
+
Please note that these scripts are considered part of octocatalog-diff, and not part of your Puppet codebase. Therefore, the path to your scripts must be an absolute path, and we do not support (or intend to support) using multiple script directories during the same run of octocatalog-diff.
36
+
37
+
## Explanation of scripts
38
+
39
+
This is an explanation of the [existing scripts supplied by octocatalog-diff](/scripts):
40
+
41
+
-[`env.sh`](/scripts/env)
42
+
43
+
Prints out the environment. This is currently only used for spec tests.
44
+
45
+
-[`git-extract.sh`](/scripts/git-extract)
46
+
47
+
Extracts a specified branch from the git repository into a specified target directory.
48
+
49
+
-[`puppet.sh`](/scripts/puppet)
50
+
51
+
Runs puppet (with additional command line arguments), generally used to compile a catalog or determine the Puppet version.
0 commit comments