a2zdeploy 1.0.15 → 1.0.16
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/upgrade.rb +16 -1
- 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: ac0a2d7affde4b29dacbbcebb5c23cee239cc68e
|
|
4
|
+
data.tar.gz: 04bbdbcaeb59b36f5d0b6d6f442541f94ca53854
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 294300a2fff2681545d39bfd9c7dbfe82aac79532a6d7bd4ea88487eba40eb2108282813176e3e7b581e8e846e392c465eba98f4e401282178bc0680f6346f79
|
|
7
|
+
data.tar.gz: 3cd264974cf36945f4f6a40d4bcdfd76c06f5a9b5e666ae9e3283611219a44371c204a286111f259c0553bf1d46ac89ff124d839d7728a5dae20f3e1eb21de2d
|
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.16'
|
|
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'
|
|
7
7
|
s.authors = ['Suresh Batta']
|
data/lib/upgrade.rb
CHANGED
|
@@ -110,9 +110,11 @@ class Upgrade
|
|
|
110
110
|
puts GlobalConstants::UPGRADE_PROGRESS + ' Rake Error: There were errors during rake run.'
|
|
111
111
|
# save state
|
|
112
112
|
GithubApi.CommitChanges( VERSION_UPGRADE_FAIL_BUILD_COMMIT)
|
|
113
|
+
clear_project_env_vars
|
|
113
114
|
|
|
114
115
|
return false
|
|
115
116
|
end
|
|
117
|
+
clear_project_env_vars
|
|
116
118
|
|
|
117
119
|
# update version map with nuget versions after build success
|
|
118
120
|
if semver_inc_done
|
|
@@ -160,7 +162,7 @@ class Upgrade
|
|
|
160
162
|
puts GlobalConstants::UPGRADE_PROGRESS + 'Local version changes are being committed'
|
|
161
163
|
return false if !GithubApi.CommitChanges('Versions updated')
|
|
162
164
|
end
|
|
163
|
-
|
|
165
|
+
|
|
164
166
|
# rebase and push the branch
|
|
165
167
|
puts GlobalConstants::UPGRADE_PROGRESS + 'Rebasing and pushing update branch...'
|
|
166
168
|
GithubApi.CheckoutLocal @branch
|
|
@@ -283,6 +285,19 @@ class Upgrade
|
|
|
283
285
|
ENV['unitestconnectionString'] = envs.unitestconnectionString if envs.respond_to? 'unitestconnectionString'
|
|
284
286
|
end
|
|
285
287
|
|
|
288
|
+
def clear_project_env_vars
|
|
289
|
+
ENV['AI_InstrumentationKey'] = '' if envs.respond_to? 'AI_InstrumentationKey'
|
|
290
|
+
ENV['AppClientId'] = '' if envs.respond_to? 'AppClientId'
|
|
291
|
+
ENV['ConfigSettingsTable'] = '' if envs.respond_to? 'ConfigSettingsTable'
|
|
292
|
+
ENV['env'] = '' if envs.respond_to? 'env'
|
|
293
|
+
ENV['RuntimePath'] = '' if envs.respond_to? 'RuntimePath'
|
|
294
|
+
ENV['ServiceName'] = '' if envs.respond_to? 'ServiceName'
|
|
295
|
+
ENV['SettingsAccount'] = '' if envs.respond_to? 'SettingsAccount'
|
|
296
|
+
ENV['SettingsAccountKey'] = '' if envs.respond_to? 'SettingsAccountKey'
|
|
297
|
+
ENV['should_update_settings_connstr'] = '' if envs.respond_to? 'should_update_settings_connstr'
|
|
298
|
+
ENV['unitestconnectionString'] = '' if envs.respond_to? 'unitestconnectionString'
|
|
299
|
+
end
|
|
300
|
+
|
|
286
301
|
def increment_semver_if_publish is_local_run
|
|
287
302
|
|
|
288
303
|
if is_local_run
|
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.16
|
|
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-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Automated Upgrades Gem. Provides version upgrades, build and deployment
|
|
14
14
|
configuration management
|