a2zdeploy 1.0.14 → 1.0.15
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 +2 -2
- data/lib/global_constants.rb +1 -0
- data/lib/upgradeall.rb +18 -7
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0fd288b8a0e983f6410415359f12d02087867a65
|
|
4
|
+
data.tar.gz: e165a426934a284e7625d6eae57e995464a07547
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fc01a911ae2548ffa76f351006a97d18a49e29e66d1fa74a7f6b9e0493d5c43fa8b04b2e7a8154e8db18e5f92472a22797358debfd59fa974bf6189c54862d66
|
|
7
|
+
data.tar.gz: 0cb88dda0ed237564be41fd0bb6f20c9ae867eb5e3556281c1a053fbe4cd306d31912a9d9daea7b74551d1fa03f271771d9e91bf58aeeeb098f45e5b960a62a7
|
data/a2zdeploy.gemspec
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Gem::Specification.new do |s|
|
|
2
2
|
s.name = 'a2zdeploy'
|
|
3
|
-
s.version = '1.0.
|
|
4
|
-
s.date = '2016-02-
|
|
3
|
+
s.version = '1.0.15'
|
|
4
|
+
s.date = '2016-02-12'
|
|
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'
|
|
7
7
|
s.authors = ['Suresh Batta']
|
data/lib/global_constants.rb
CHANGED
data/lib/upgradeall.rb
CHANGED
|
@@ -70,7 +70,7 @@ class UpgradeAll
|
|
|
70
70
|
end
|
|
71
71
|
raise StandardError, validation_error_message(validation_errors) if validation_errors.length > 0
|
|
72
72
|
|
|
73
|
-
nuget_targets = nuget_targets_in_env_if_any
|
|
73
|
+
nuget_targets = nuget_targets_in_env_if_any 'checkoutdir.txt'
|
|
74
74
|
upgrader = Upgrade.new versions_to_update
|
|
75
75
|
|
|
76
76
|
# if changes exist, cycle through dependency tree and kick off upgrades
|
|
@@ -125,10 +125,20 @@ class UpgradeAll
|
|
|
125
125
|
true
|
|
126
126
|
end
|
|
127
127
|
|
|
128
|
-
|
|
129
|
-
|
|
128
|
+
=begin
|
|
129
|
+
When running in a local upgrade scenario, nuget targets may be supplied via either
|
|
130
|
+
1. a path in file
|
|
131
|
+
2. environment variable
|
|
132
|
+
=end
|
|
133
|
+
def nuget_targets_in_env_if_any checkout_file_path = ''
|
|
134
|
+
existing_targets = nil
|
|
135
|
+
if File.exist? checkout_file_path
|
|
136
|
+
existing_targets = (File.read checkout_file_path) + '/build_artifacts'
|
|
137
|
+
elsif !ENV[GlobalConstants::NUGET_TARGETS].nil? && ENV[GlobalConstants::NUGET_TARGETS].strip != GlobalConstants::EMPTY
|
|
138
|
+
existing_targets = ENV[GlobalConstants::NUGET_TARGETS]
|
|
139
|
+
end
|
|
130
140
|
target_list = []
|
|
131
|
-
target_list = existing_targets.split(',') if existing_targets
|
|
141
|
+
target_list = existing_targets.split(',') if !existing_targets.nil?
|
|
132
142
|
target_list
|
|
133
143
|
end
|
|
134
144
|
|
|
@@ -205,10 +215,11 @@ class UpgradeAll
|
|
|
205
215
|
checks = 0
|
|
206
216
|
build_wait_time_in_secs = build_wait_time_in_secs.to_i
|
|
207
217
|
|
|
218
|
+
wait_secs = 5
|
|
208
219
|
until checks > build_wait_time_in_secs
|
|
209
|
-
sleep
|
|
210
|
-
checks +=
|
|
211
|
-
puts GlobalConstants::UPGRADE_PROGRESS +
|
|
220
|
+
sleep wait_secs
|
|
221
|
+
checks += wait_secs
|
|
222
|
+
puts GlobalConstants::UPGRADE_PROGRESS + "Waiting for #{wait_secs} seconds..."
|
|
212
223
|
end
|
|
213
224
|
end
|
|
214
225
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: a2zdeploy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.15
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Suresh Batta
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-02-
|
|
11
|
+
date: 2016-02-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Automated Upgrades Gem. Provides version upgrades, build and deployment
|
|
14
14
|
configuration management
|