-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #237 from Erich-McMillan/feature/236-default-group
Feature/236 default group
- Loading branch information
Showing
10 changed files
with
246 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Specifying a Default Group | ||
|
||
Using the `default_group` attribute in gitman.yml specifies which group of | ||
dependencies to install if no inputs are provided to `gitman install`. If | ||
if is set to a blank string, `default_group: ''`, then all sources are | ||
installed. | ||
|
||
When nested gitman projects are used default groups are installed if they | ||
exist. In the case of the following project layout: | ||
|
||
Project A gitman.yml | ||
|
||
```yaml | ||
location: dependencies | ||
sources: | ||
- name: b | ||
type: git | ||
repo: https://project_b | ||
rev: master | ||
``` | ||
|
||
Project B gitman.yml | ||
|
||
```yaml | ||
location: dependencies | ||
sources: | ||
- name: c | ||
type: git | ||
repo: https://project_c | ||
rev: master | ||
- name: d | ||
type: git | ||
repo: https://project_d | ||
rev: master | ||
groups: | ||
- name: group_c_d | ||
members: | ||
- c | ||
- d | ||
- name: group_d | ||
members: | ||
- d | ||
- default_group: 'group_d' | ||
``` | ||
|
||
When `gitman install` is invoked from project A then project B is installed. | ||
As project B is installed the default group `group_d` will be installed, unless | ||
`gitman install -n` or `gitman install --no-defaults` is specified which will result in all of project B's | ||
dependencies (both c and d) being installed. |
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
This file contains 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 characters
Oops, something went wrong.