azdeploy 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/azdeploy.gemspec +2 -2
- data/lib/transform.rb +21 -2
- 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: 45fe92f3d8dbd9042c84741fa9cdea293fee6395
|
4
|
+
data.tar.gz: dae57dec5b529e993328aa93801c2e53b9340f25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da3d54aa1b757ecf086a40c84e6ed5a8219f984533bbfda25ad1836f737c71fec9b9ce6bec837cfb00fb7b2385c60e246b57902e163277ed5267dcca5c0c6c61
|
7
|
+
data.tar.gz: 4e25cbfca198b799a6cc60801235c6a56cef6a7e207c1c6b985dc470b44172fb5098a5e31be826f170c21060ad42c661edbc5e69ea8667147b18574b276d19c2
|
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-
|
3
|
+
s.version = '1.0.16'
|
4
|
+
s.date = '2015-05-18'
|
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
@@ -149,6 +149,20 @@ class Transform
|
|
149
149
|
}
|
150
150
|
end
|
151
151
|
|
152
|
+
def transform_appinsights
|
153
|
+
aiconfig = Dir.glob('**/ApplicationInsights.config')
|
154
|
+
aiconfig.each{ |file|
|
155
|
+
doc = Nokogiri::XML(File.read(file))
|
156
|
+
|
157
|
+
node = doc.at_css 'InstrumentationKey'
|
158
|
+
if (!node.nil?)
|
159
|
+
node.content = get_value('AI_InstrumentationKey') if !node.nil?
|
160
|
+
end
|
161
|
+
|
162
|
+
File.write(file, doc.to_xml)
|
163
|
+
}
|
164
|
+
end
|
165
|
+
|
152
166
|
def transform_diagnosticscfg
|
153
167
|
csdef = Dir.glob('**/*.wadcfgx')
|
154
168
|
csdef.each{ |file|
|
@@ -170,8 +184,10 @@ class Transform
|
|
170
184
|
doc = Nokogiri::XML(File.read(file))
|
171
185
|
|
172
186
|
node = doc.at_css 'dataCacheClients/dataCacheClient/autoDiscover'
|
173
|
-
node
|
174
|
-
|
187
|
+
if (!node.nil?)
|
188
|
+
node['identifier'] = cacheclient_id
|
189
|
+
end
|
190
|
+
|
175
191
|
File.write(file, doc.to_xml)
|
176
192
|
}
|
177
193
|
end
|
@@ -239,6 +255,9 @@ class Transform
|
|
239
255
|
puts 'Transforming cache client...'
|
240
256
|
transform_cacheclient
|
241
257
|
|
258
|
+
puts 'Transforming Application Insights...'
|
259
|
+
transform_appinsights
|
260
|
+
|
242
261
|
return true
|
243
262
|
end
|
244
263
|
|
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.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: 2015-
|
11
|
+
date: 2015-05-18 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
|