a2zdeploy 1.0.7 → 1.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
2
  SHA1:
3
- metadata.gz: 76318ebadbc0f43c3de30eeb1325d6b0cccf448c
4
- data.tar.gz: fc67f2c7342100bf9ae5782589983b08a93b67f8
3
+ metadata.gz: edab4c51044637b609ff7db1584caa6b6b1bc4f2
4
+ data.tar.gz: ea01503bc8ce736a0a80d9f5a92877685dfef052
5
5
  SHA512:
6
- metadata.gz: d8798ee2b117d616f137969b0a644b1a1193b4380987a6dacdb762ed343cf9e63dd4bb3b9021ee2c715af9531c649504832d53a85342a0a23a6ac95fce990bf0
7
- data.tar.gz: 6a55ce54c063f69b3ddf7673c697289ab07ed7a837de755a36922d644d53cef6470d0086e15942095032191c9ea109942cc4bb08a8f58f5cc5b8431a56884a45
6
+ metadata.gz: 03baf61d9457ad7647d5db1db0f4bb75fa08844d8b9cab264a6f3f5070616f8a51f904a8dae7ee82d4a67e3d9bef740f3f27320cc9311f87935ce884aa608617
7
+ data.tar.gz: aacb8a92c90f4df953da316a291fe1c8e61da388a574ee7053fb6b6e4f88ff337bec93b3386b2733650cbf970e0c85f7817aafca3682cb408191b7a71c7f313e
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.7'
3
+ s.version = '1.0.8'
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/github_api.rb CHANGED
@@ -119,8 +119,10 @@ module GithubApi
119
119
 
120
120
  end
121
121
 
122
- def GithubApi.CommitChanges comment, git_status = ''
122
+ def GithubApi.CommitChanges comment
123
+ git_status = GithubApi.HaveLocalChanges
123
124
  if git_status != GlobalConstants::EMPTY
125
+ puts 'Going to add changes to git index...'
124
126
  #gotcha: line breaks need to be in double-quotes
125
127
  val = git_status.split("\n")
126
128
  val.each { |x|
@@ -133,7 +135,8 @@ module GithubApi
133
135
  end
134
136
  }
135
137
  end
136
-
138
+
139
+ puts 'Going to commit changes...'
137
140
  status = `git commit -m "#{comment}"`
138
141
  return status != GlobalConstants::EMPTY
139
142
  end
data/lib/upgrade.rb CHANGED
@@ -154,10 +154,10 @@ class UpgradePackages
154
154
  git_status = GithubApi.HaveLocalChanges
155
155
  git_status = git_status != nil || git_status != GlobalConstants::EMPTY
156
156
 
157
- puts GlobalConstants::UPGRADE_PROGRESS + " Local changes are present: #{git_status}"
157
+ puts GlobalConstants::UPGRADE_PROGRESS + "Local changes are present: #{git_status}"
158
158
  if git_status
159
- puts GlobalConstants::UPGRADE_PROGRESS + 'Local version changes have been committed'
160
- return false if !GithubApi.CommitChanges( 'Versions updated')
159
+ puts GlobalConstants::UPGRADE_PROGRESS + 'Local version changes are being committed'
160
+ return false if !GithubApi.CommitChanges('Versions updated')
161
161
  end
162
162
 
163
163
  # rebase and push the branch
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: a2zdeploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Suresh Batta