ebm 0.0.24 → 0.0.25

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- data.tar.gz: b9fa2707d6aa2ba087f41a86c67621e4f4d63e4a
4
- metadata.gz: 19150ec3f6cc610bfbaa1357c9dacfbe1f1af664
5
2
  SHA512:
6
- data.tar.gz: ed826b950cf9cd52548d3d540aabf587f4468d6f8afb0516cf391d4f12671c078ea04fad18b94ce8f58dc861720c3e64b1d541e8d917df05a451352d082471cd
7
- metadata.gz: b9f6601bcde3b9a60437d967032f926a9785417f71ade889c27327cb8f73dde61942b545135f09d637c81bd6c815a2d97a0fa92fb5053d9deda428a5bab0a018
3
+ metadata.gz: 786ec8b4b779ca4b493caf7b33be605b8f7153d5aa8c1734f3ff014b586a64757d4695fd1d1bd033f9c539b44a7994ad6cabc535f8156872cc5ff3978db921c2
4
+ data.tar.gz: 5fc4701500b320c735e5fe127dc227281ebb938dafd5588a8e31ffa13daeec0ea41fbf0e52fc75f5f629534609b17296ad2c6da5fd51e36da8d83806551c3050
5
+ SHA1:
6
+ metadata.gz: 733ad60292f1607af13abf36606ba345915af87f
7
+ data.tar.gz: f27005a74f5dd048a82f6328f7ee54ae2b99e24c
@@ -95,7 +95,11 @@ module Commands
95
95
  cmd = "git checkout --track origin/#{dev_branch_name}"
96
96
  if EbmSharedLib::CL.do_cmd_result(cmd, repo_path) != 0
97
97
  # no remote branch, so create local and push as remote
98
- cmd = "git checkout -B #{dev_branch_name} && git push -u origin #{dev_branch_name}"
98
+ cmd = "git checkout -B #{dev_branch_name}"
99
+ if EbmSharedLib::CL.do_cmd_result(cmd, repo_path) != 0
100
+ raise "Unable to create local and tracking developer branch #{dev_branch_name} for #{repo_name}."
101
+ end
102
+ cmd = "git push -u origin #{dev_branch_name}"
99
103
  if EbmSharedLib::CL.do_cmd_result(cmd, repo_path) != 0
100
104
  raise "Unable to create local and tracking developer branch #{dev_branch_name} for #{repo_name}."
101
105
  end
@@ -117,7 +121,11 @@ module Commands
117
121
  end
118
122
 
119
123
  # pull any submodules
120
- cmd = "git submodule init && git submodule update"
124
+ cmd = "git submodule init"
125
+ if EbmSharedLib::CL.do_cmd_result(cmd, repo_path) != 0
126
+ raise "Cloning submodules in repo at #{git_path} failed."
127
+ end
128
+ cmd = "git submodule update"
121
129
  if EbmSharedLib::CL.do_cmd_result(cmd, repo_path) != 0
122
130
  raise "Cloning submodules in repo at #{git_path} failed."
123
131
  end
data/lib/commands/tag.rb CHANGED
@@ -65,7 +65,14 @@ module Commands
65
65
  repo_name = EbmSharedLib.get_repo_name(repo[:git_path])
66
66
  repo_path = "#{top_dir}/#{repo_name}"
67
67
  if delete_tag
68
- cmd = "git tag -d #{tag} && git push origin :refs/tags/#{tag}"
68
+ cmd = "git tag -d #{tag}"
69
+ if EbmSharedLib::CL.do_cmd_result(cmd, repo_path) != 0
70
+ raise "Deleting tag failed for #{repo_name}."
71
+ end
72
+ cmd = "git push origin :refs/tags/#{tag}"
73
+ if EbmSharedLib::CL.do_cmd_result(cmd, repo_path) != 0
74
+ raise "Deleting tag failed failed for #{repo_name}."
75
+ end
69
76
  else
70
77
  if commit_and_push
71
78
  # they want to commit whatever has changed and push to current remote
@@ -82,7 +89,11 @@ module Commands
82
89
  raise "Push failed failed for #{repo_name}."
83
90
  end
84
91
  end
85
- cmd = "git tag #{tag} && git push origin refs/tags/#{tag}"
92
+ cmd = "git tag #{tag}"
93
+ if EbmSharedLib::CL.do_cmd_result(cmd, repo_path) != 0
94
+ raise "Tagging operation failed for #{repo_name}. Make sure you are in the top level #{config_name} directory."
95
+ end
96
+ cmd = "git push origin refs/tags/#{tag}"
86
97
  if EbmSharedLib::CL.do_cmd_result(cmd, repo_path) != 0
87
98
  raise "Tagging operation failed for #{repo_name}. Make sure you are in the top level #{config_name} directory."
88
99
  end
data/lib/info.rb CHANGED
@@ -7,6 +7,6 @@
7
7
  #
8
8
  class Info
9
9
  def self.version
10
- "0.0.24"
10
+ "0.0.25"
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.24
4
+ version: 0.0.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Seitz