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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 962ccdc90dcbc06c4e658c55f4d7bb36a2dae4c1
4
- data.tar.gz: d39518c574b3f8bb63794c50437cc9d50fd4802f
3
+ metadata.gz: 0fd288b8a0e983f6410415359f12d02087867a65
4
+ data.tar.gz: e165a426934a284e7625d6eae57e995464a07547
5
5
  SHA512:
6
- metadata.gz: 546607ce6d67293fee2fb49bb048da3f08e242cb7ee378f75cc1fa5bf67131041973670f7ea37fa7dbc0be1a6df90d497d2136ed696f07ba7a692e06c389b074
7
- data.tar.gz: 58b91ebca39cbc2a107847c88e1bb59d7d0ebc778aba6184d6c13f062b02a3cb8275702676bd1c48a7ffd22333270c1a6ed8459393f03853329f88c9a5be6834
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.14'
4
- s.date = '2016-02-08'
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']
@@ -19,4 +19,5 @@ module GlobalConstants
19
19
  PARENTDIR = '..'
20
20
  DOT = '.'
21
21
 
22
+ NUGET_TARGETS = 'nuget_targets'
22
23
  end
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
- def nuget_targets_in_env_if_any
129
- existing_targets = ENV['nuget_targets'] if !ENV['nuget_targets'] != nil || ENV['nuget_targets'] != GlobalConstants::EMPTY
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 != nil
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 5
210
- checks += 5
211
- puts GlobalConstants::UPGRADE_PROGRESS + 'Waiting for 5 seconds...'
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.14
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-08 00:00:00.000000000 Z
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