a2zdeploy 1.0.6 → 1.0.7
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 +4 -4
- data/a2zdeploy.gemspec +1 -1
- data/lib/upgrade.rb +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 76318ebadbc0f43c3de30eeb1325d6b0cccf448c
|
|
4
|
+
data.tar.gz: fc67f2c7342100bf9ae5782589983b08a93b67f8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d8798ee2b117d616f137969b0a644b1a1193b4380987a6dacdb762ed343cf9e63dd4bb3b9021ee2c715af9531c649504832d53a85342a0a23a6ac95fce990bf0
|
|
7
|
+
data.tar.gz: 6a55ce54c063f69b3ddf7673c697289ab07ed7a837de755a36922d644d53cef6470d0086e15942095032191c9ea109942cc4bb08a8f58f5cc5b8431a56884a45
|
data/a2zdeploy.gemspec
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = 'a2zdeploy'
|
|
3
|
-
s.version = '1.0.
|
|
3
|
+
s.version = '1.0.7'
|
|
4
4
|
s.date = '2016-02-08'
|
|
5
5
|
s.summary = 'Given a project dependency chain, updates versions, builds, tests, manages service and cloud settings as well as build environment configuration'
|
|
6
6
|
s.description = 'Automated Upgrades Gem. Provides version upgrades, build and deployment configuration management'
|
data/lib/upgrade.rb
CHANGED
|
@@ -123,8 +123,10 @@ class UpgradePackages
|
|
|
123
123
|
if is_local_run
|
|
124
124
|
puts GlobalConstants::UPGRADE_PROGRESS + 'Local run. No branch update or teamcity build triggered'
|
|
125
125
|
else
|
|
126
|
+
puts GlobalConstants::UPGRADE_PROGRESS + 'Branch update in progress...'
|
|
126
127
|
return false if !update_branch
|
|
127
128
|
# kick off teamcity build
|
|
129
|
+
puts GlobalConstants::UPGRADE_PROGRESS + 'Teamcity Project being triggered...'
|
|
128
130
|
TeamCityApi.trigger_build @config_map.build_configuration_id, ENV['tc_un'], ENV['tc_pwd']
|
|
129
131
|
end
|
|
130
132
|
|
|
@@ -150,7 +152,10 @@ class UpgradePackages
|
|
|
150
152
|
|
|
151
153
|
# see if any files changed and commit
|
|
152
154
|
git_status = GithubApi.HaveLocalChanges
|
|
153
|
-
|
|
155
|
+
git_status = git_status != nil || git_status != GlobalConstants::EMPTY
|
|
156
|
+
|
|
157
|
+
puts GlobalConstants::UPGRADE_PROGRESS + " Local changes are present: #{git_status}"
|
|
158
|
+
if git_status
|
|
154
159
|
puts GlobalConstants::UPGRADE_PROGRESS + 'Local version changes have been committed'
|
|
155
160
|
return false if !GithubApi.CommitChanges( 'Versions updated')
|
|
156
161
|
end
|