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 +4 -4
- data/a2zdeploy.gemspec +1 -1
- data/lib/github_api.rb +5 -2
- data/lib/upgrade.rb +3 -3
- 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: edab4c51044637b609ff7db1584caa6b6b1bc4f2
|
4
|
+
data.tar.gz: ea01503bc8ce736a0a80d9f5a92877685dfef052
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
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 + "
|
157
|
+
puts GlobalConstants::UPGRADE_PROGRESS + "Local changes are present: #{git_status}"
|
158
158
|
if git_status
|
159
|
-
puts GlobalConstants::UPGRADE_PROGRESS + 'Local version changes
|
160
|
-
return false if !GithubApi.CommitChanges(
|
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
|