azdeploy 1.0.21 → 1.0.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/azdeploy.gemspec +2 -2
- data/lib/transform.rb +16 -9
- 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: 12684814c7ab2e3b485a14c24a1b211790c6863a
|
4
|
+
data.tar.gz: 3d0ea37959a327aad4807e5aa707cd715a8ffcdb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 132979a4a166576b29e4b635fecea25237dc245cf661374e7a0f2446f6aec71031b2e6565a2834f1be597d20a1723f22588266edd9227e7bb3888b381caf3095
|
7
|
+
data.tar.gz: 9593ab1cbfd6a1f3a49cbd6fbb91efdfb964340f81f8085b4659569ba629a89a4cfd1f1d34e333fb1b77e9b0d3ffb49e673b3be56f22a07f91dbe66871b7f444
|
data/azdeploy.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'azdeploy'
|
3
|
-
s.version = '1.0.
|
4
|
-
s.date = '2015-08-
|
3
|
+
s.version = '1.0.22'
|
4
|
+
s.date = '2015-08-07'
|
5
5
|
s.summary = 'Setup and scripting support for .Net project builds'
|
6
6
|
s.description = 'Azure Deployment Gem. Provides easy setup and deployment scripting support for .Net project builds'
|
7
7
|
s.authors = ['Suresh Batta']
|
data/lib/transform.rb
CHANGED
@@ -127,13 +127,13 @@ class Transform
|
|
127
127
|
doc = Nokogiri::XML(File.read(file))
|
128
128
|
|
129
129
|
node = doc.at_css 'ServiceDefinition'
|
130
|
-
node['name'] =
|
130
|
+
node['name'] = @service_name if !node.nil?
|
131
131
|
|
132
132
|
node = doc.at_css 'WebRole'
|
133
|
-
node['name'] =
|
133
|
+
node['name'] = @service_name if !node.nil?
|
134
134
|
|
135
135
|
node = doc.at_css 'WorkerRole'
|
136
|
-
node['name'] =
|
136
|
+
node['name'] = @service_name if !node.nil?
|
137
137
|
|
138
138
|
node = doc.at_css 'Certificates'
|
139
139
|
node.replace(get_value('Certificates_csdef')) if !node.nil?
|
@@ -163,10 +163,10 @@ class Transform
|
|
163
163
|
doc = Nokogiri::XML(File.read(file))
|
164
164
|
|
165
165
|
node = doc.at_css 'ServiceConfiguration'
|
166
|
-
node['serviceName'] =
|
166
|
+
node['serviceName'] = @service_name if !node.nil?
|
167
167
|
|
168
168
|
node = doc.at_css 'Role'
|
169
|
-
node['name'] =
|
169
|
+
node['name'] = @service_name if !node.nil?
|
170
170
|
|
171
171
|
node = doc.at_css 'Certificates'
|
172
172
|
node.replace(get_value('Certificates_cscfg')) if !node.nil?
|
@@ -286,18 +286,25 @@ class Transform
|
|
286
286
|
end
|
287
287
|
|
288
288
|
puts 'updating unit test connection string...'
|
289
|
-
unitest_connstr = "DefaultEndpointsProtocol=https;AccountName=#{settings_account_name};AccountKey=#{settings_access_key}"
|
290
289
|
unitest_connstr = ENV['unitestconnectionString'] || NO
|
291
290
|
if unitest_connstr == NO
|
292
291
|
puts 'No unit test connection string found.'
|
293
292
|
else
|
294
293
|
transform_appsettings('unitestconnectionString', unitest_connstr)
|
295
294
|
end
|
296
|
-
|
297
|
-
is_service = ENV['ServiceName'] || NO
|
298
295
|
|
296
|
+
puts 'updating App Id...'
|
297
|
+
appId = ENV['AppId'] || NO
|
298
|
+
if appId == NO
|
299
|
+
puts 'No AppId found.'
|
300
|
+
else
|
301
|
+
transform_appsettings('AppID', appId)
|
302
|
+
end
|
303
|
+
|
304
|
+
@service_name = ENV['ServiceName']
|
305
|
+
is_service = @service_name || NO
|
299
306
|
if is_service != NO
|
300
|
-
puts "Transforming config for service: #{
|
307
|
+
puts "Transforming config for service: #{@service_name}"
|
301
308
|
|
302
309
|
puts 'Obtaining cloud configuration templates...'
|
303
310
|
csdefTemplate = get_value('ServiceDefinitionTemplate')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azdeploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Suresh Batta
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Azure Deployment Gem. Provides easy setup and deployment scripting support
|
14
14
|
for .Net project builds
|