{"_id":"5582f41f81672a3900bb4fe9","user":"54bf8cd9dcfc4d0d00a1a19e","githubsync":"","category":{"_id":"54fda38f21538c21006c49a7","project":"545e249c7ca5470800b3a1b2","version":"54fda38e21538c21006c49a6","__v":3,"pages":["54fda39021538c21006c49b6","54fda39021538c21006c49b7","54fda39021538c21006c49b8","54fda39021538c21006c49b9","54fda39021538c21006c49ba","54fda39021538c21006c49bb","54fda5d10c05ea25004ce0cd","5582f41f81672a3900bb4fe9"],"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2014-11-08T14:11:40.826Z","from_sync":false,"order":0,"slug":"documentation","title":"Documentation"},"version":{"_id":"54fda38e21538c21006c49a6","__v":3,"forked_from":"54eb4535615ffc19003059f0","project":"545e249c7ca5470800b3a1b2","createdAt":"2015-03-09T13:43:42.927Z","releaseDate":"2015-03-09T13:43:42.927Z","categories":["54fda38f21538c21006c49a7","54fda38f21538c21006c49a8","54fda38f21538c21006c49a9","54fda38f21538c21006c49aa","54fda38f21538c21006c49ab","54fda3d347f93619001d2ae2","54fea8975c4ab10d00ef4279"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"0.5.0","version":"0.5.0"},"__v":5,"project":"545e249c7ca5470800b3a1b2","metadata":{"title":"","description":"","image":[]},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-06-18T16:38:55.843Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":999,"body":"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:\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"# Reference a single file using a relative path\\nload 'path/to/another/Sheepfile.1'\\n\\n# Reference a single file using an absolute path\\nload '~/backups/config/Sheepfile.2'\\n\\n# Reference all files in a directory using a relative path\\nload 'path/to/directory'\\n\\n# Reference all files in a directory using an absolute path\\nload '~/backups/config'\\n\\n# All statements available in the DSL can still be used\\njob \\\"a-job\\\" do\\n  ...\\nend\",\n      \"language\": \"ruby\",\n      \"name\": \"Sheepfile\"\n    }\n  ]\n}\n[/block]\n\n[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"Paths\",\n  \"body\": \"Relative and absolute paths are supported. If you use relative paths, they'll be relative to the top-level configuration file.\"\n}\n[/block]","excerpt":"Spread your jobs across multiple files","slug":"organize-your-sheepfiles","type":"basic","title":"Organize your Sheepfiles"}

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: [block:code] { "codes": [ { "code": "# Reference a single file using a relative path\nload 'path/to/another/Sheepfile.1'\n\n# Reference a single file using an absolute path\nload '~/backups/config/Sheepfile.2'\n\n# Reference all files in a directory using a relative path\nload 'path/to/directory'\n\n# Reference all files in a directory using an absolute path\nload '~/backups/config'\n\n# All statements available in the DSL can still be used\njob \"a-job\" do\n ...\nend", "language": "ruby", "name": "Sheepfile" } ] } [/block] [block:callout] { "type": "info", "title": "Paths", "body": "Relative and absolute paths are supported. If you use relative paths, they'll be relative to the top-level configuration file." } [/block]