ebm 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- data.tar.gz: 0c725195aa2ea01b30175db0d8dccaf28cfd2a73
4
- metadata.gz: c1170d96be399a05361ed6f12d00e6d26ea07b73
5
2
  SHA512:
6
- data.tar.gz: 4284c1187dfdd820e75aeb30866bf3c43c77ea99513b5ac712978838de8b2ebcbc54f48c98223e8c365b90d4b7acfec765d95cf1f1c60d39413f7e1cfe58e5a4
7
- metadata.gz: 390cace7b072bdfebe5b2f055843f4fba7cc0de790dafd7a836acc4339ab37422f9e014deffa130825f959c38fc590151e2784167abf628f9385881d039c009f
3
+ metadata.gz: 5a51322fa4f1dd04b5df1fbe05f5b43365627b15600f45791be45260277396921a7987aee15b49e48dcf6f3e696508d32afac89fac8b4d8936f27dc648879d21
4
+ data.tar.gz: 0effc84cefbf5ee888f4297e7bbb82bd9f49bc77c6ddc328b5ee11bb60f6e57ad4e95d3cd0be242890fd4afedaef2e779ceabcb8c9e7f0b2991ddfbefeba2915
5
+ SHA1:
6
+ metadata.gz: 0c37610db29f0af7f753745d1c06946d374aa94e
7
+ data.tar.gz: e61e3bdfda2704ddf9b226f0b987b81c07ebfae9
@@ -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
@@ -7,6 +7,6 @@
7
7
  #
8
8
  class Info
9
9
  def self.version
10
- "0.0.7"
10
+ "0.0.8"
11
11
  end
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ebm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Seitz