a2zdeploy 1.0.17 → 1.0.18

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: 3a0a34d1de85cef1a31eab32625adfeee5d2bb7c
4
- data.tar.gz: dd46afd7fc6f559e6f42e6f3119384702f9e061d
3
+ metadata.gz: 7ff9f5db9e1c4b5abf2950f59f8ec2f039d89005
4
+ data.tar.gz: 77c0358fd6d2078746340339eab6af166e13be03
5
5
  SHA512:
6
- metadata.gz: 3b59804897e8f8ad86b9e26392f44c7763928ad5eec7229cc8acf0e60d3571b3e7cf6b28e49f00b93b6105721a4145024303a104cba7e9bd0851d5c68583e323
7
- data.tar.gz: 93c52454999b33f0356d4643f61ef5b93d0c17a8c4e9968987f4b97761420a6d6a9bdd3c19e88da959e82b9334f1a54be6b7af924ee243c4924cbaeb62d7797b
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.17'
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 false
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(MANIFEST_FILE, 'w') do |f|
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
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.17
4
+ version: 1.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Suresh Batta