Organize your Sheepfiles
Spread your jobs across multiple files
You may declare as many jobs as you want into a single Sheepfile. As the number of jobs increase, you may want to spread your jobs across multiple files. You may use load
into your main Sheepfile to reference other configuration files or even directories:
# Reference a single file using a relative path
load 'path/to/another/Sheepfile.1'
# Reference a single file using an absolute path
load '~/backups/config/Sheepfile.2'
# Reference all files in a directory using a relative path
load 'path/to/directory'
# Reference all files in a directory using an absolute path
load '~/backups/config'
# All statements available in the DSL can still be used
job "a-job" do
...
end
Paths
Relative and absolute paths are supported. If you use relative paths, they'll be relative to the top-level configuration file.
Updated less than a minute ago