ebm 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/lib/commands/prepare.rb +8 -3
- data/lib/info.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
SHA1:
|
3
|
-
data.tar.gz: 0c725195aa2ea01b30175db0d8dccaf28cfd2a73
|
4
|
-
metadata.gz: c1170d96be399a05361ed6f12d00e6d26ea07b73
|
5
2
|
SHA512:
|
6
|
-
|
7
|
-
|
3
|
+
metadata.gz: 5a51322fa4f1dd04b5df1fbe05f5b43365627b15600f45791be45260277396921a7987aee15b49e48dcf6f3e696508d32afac89fac8b4d8936f27dc648879d21
|
4
|
+
data.tar.gz: 0effc84cefbf5ee888f4297e7bbb82bd9f49bc77c6ddc328b5ee11bb60f6e57ad4e95d3cd0be242890fd4afedaef2e779ceabcb8c9e7f0b2991ddfbefeba2915
|
5
|
+
SHA1:
|
6
|
+
metadata.gz: 0c37610db29f0af7f753745d1c06946d374aa94e
|
7
|
+
data.tar.gz: e61e3bdfda2704ddf9b226f0b987b81c07ebfae9
|
data/lib/commands/prepare.rb
CHANGED
@@ -35,16 +35,20 @@ module Commands
|
|
35
35
|
options[:initials] = v
|
36
36
|
end
|
37
37
|
|
38
|
+
opts.on("--nobranch", "Don't create developer branch.") do |v|
|
39
|
+
options[:nobranch] = v
|
40
|
+
end
|
41
|
+
|
38
42
|
end
|
39
43
|
|
40
44
|
# prepare a single repo and create a local and tracking branch if it should have one
|
41
45
|
# if the repo specifies a branch then we will do the initial fetch from that branch
|
42
46
|
# if the create_dev_branch flag is set, we will create a local and tracking branch with
|
43
47
|
# the developer initials prepended
|
44
|
-
def prepare_repo(repo, top_dir, initials)
|
48
|
+
def prepare_repo(repo, top_dir, initials, nobranch)
|
45
49
|
git_path = repo[:git_path]
|
46
50
|
branch = repo[:branch]
|
47
|
-
create_dev_branch = repo[:create_dev_branch]
|
51
|
+
create_dev_branch = (repo[:create_dev_branch] == true) && (!nobranch)
|
48
52
|
tag = repo[:tag]
|
49
53
|
parent_path = repo[:parent_path]
|
50
54
|
|
@@ -111,6 +115,7 @@ module Commands
|
|
111
115
|
# the file is expected to be in JSON format
|
112
116
|
config_name = options[:config]
|
113
117
|
initials = options[:initials]
|
118
|
+
nobranch = options[:nobranch]
|
114
119
|
|
115
120
|
# try to make sure the repo is available
|
116
121
|
EbmSharedLib.prepare_config_repo
|
@@ -126,7 +131,7 @@ module Commands
|
|
126
131
|
|
127
132
|
repos = info[:repos]
|
128
133
|
repos.each do |repo|
|
129
|
-
prepare_repo(repo, top_dir, initials)
|
134
|
+
prepare_repo(repo, top_dir, initials, nobranch)
|
130
135
|
end
|
131
136
|
|
132
137
|
end
|
data/lib/info.rb
CHANGED