a2zdeploy 1.0.17 → 1.0.18
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/upgradeall.rb +5 -4
- 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: 7ff9f5db9e1c4b5abf2950f59f8ec2f039d89005
|
|
4
|
+
data.tar.gz: 77c0358fd6d2078746340339eab6af166e13be03
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 472b463c92a969a930be9e6a37c811af4494e4e3ceb654f2583b257bb3bbe6495b58f746e6839d93fd0485aafad2723a2cf1c7d3fa8a60df360d5c3f61438274
|
|
7
|
+
data.tar.gz: 4edf184f609ae730e85bb82b5a95d7bcc57d2f7379a77fa8d1d0bc1b53e7163eb07e7c661b88b871d0799508c347b3c0e41122a4199624bb0aad6c1fd6c0cf01
|
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.18'
|
|
4
4
|
s.date = '2016-02-15'
|
|
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/upgradeall.rb
CHANGED
|
@@ -59,7 +59,7 @@ class UpgradeAll
|
|
|
59
59
|
# nothing to update
|
|
60
60
|
if versions_to_update.nil? || versions_to_update.length == 0
|
|
61
61
|
puts 'No version diff, nothing to upgrade!'
|
|
62
|
-
return
|
|
62
|
+
return true
|
|
63
63
|
end
|
|
64
64
|
|
|
65
65
|
# validate manifest
|
|
@@ -111,6 +111,7 @@ class UpgradeAll
|
|
|
111
111
|
# save the version map and manifest
|
|
112
112
|
puts GlobalConstants::UPGRADE_PROGRESS + " Upgrade of #{node.project_name} failed"
|
|
113
113
|
@manifest['projects'][node_name]['metadata']['status'] = GlobalConstants::FAILED
|
|
114
|
+
save_version_manifest versions_to_update if !is_local_run
|
|
114
115
|
# no more processing after failure
|
|
115
116
|
return false
|
|
116
117
|
end
|
|
@@ -135,7 +136,7 @@ class UpgradeAll
|
|
|
135
136
|
if File.exist? checkout_file_path
|
|
136
137
|
existing_targets = (File.read checkout_file_path) + '/build_artifacts'
|
|
137
138
|
elsif !ENV[GlobalConstants::NUGET_TARGETS].nil? && ENV[GlobalConstants::NUGET_TARGETS].strip != GlobalConstants::EMPTY
|
|
138
|
-
existing_targets = ENV[GlobalConstants::NUGET_TARGETS]
|
|
139
|
+
existing_targets = ENV[GlobalConstants::NUGET_TARGETS]
|
|
139
140
|
end
|
|
140
141
|
target_list = []
|
|
141
142
|
target_list = existing_targets.split(',') if !existing_targets.nil?
|
|
@@ -161,7 +162,7 @@ class UpgradeAll
|
|
|
161
162
|
Dir.chdir repo_folder
|
|
162
163
|
|
|
163
164
|
# update files
|
|
164
|
-
File.open(
|
|
165
|
+
File.open(@manifest_path, 'w') do |f|
|
|
165
166
|
f.write @manifest.to_json
|
|
166
167
|
end
|
|
167
168
|
|
|
@@ -214,7 +215,7 @@ class UpgradeAll
|
|
|
214
215
|
def waitfor build_wait_time_in_secs
|
|
215
216
|
checks = 0
|
|
216
217
|
build_wait_time_in_secs = build_wait_time_in_secs.to_i
|
|
217
|
-
|
|
218
|
+
|
|
218
219
|
wait_secs = 5
|
|
219
220
|
until checks > build_wait_time_in_secs
|
|
220
221
|
sleep wait_secs
|