azdeploy 1.0.15 → 1.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/azdeploy.gemspec +2 -2
  3. data/lib/transform.rb +21 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 92264018c446e494c3a9572461cf005ab0268ebe
4
- data.tar.gz: 10d03cf551a5941c2d140ae5d2b6666792e4d47a
3
+ metadata.gz: 45fe92f3d8dbd9042c84741fa9cdea293fee6395
4
+ data.tar.gz: dae57dec5b529e993328aa93801c2e53b9340f25
5
5
  SHA512:
6
- metadata.gz: 8aac3858de1a605108511b2496b23955eeffc941131d6a5bda658349c120f9d060e120b4502ef9afcc512929a1a173f6e58d99cb781d3177568416da5c375f51
7
- data.tar.gz: cfd00685397fcf3177f22842f56f1cdd153cfa638ce11b3a168f06fc09b74c3696f9a72b359c0c696426e09a9efdb873c43cd8a3862ae2aa76f85e0e8e4e7b32
6
+ metadata.gz: da3d54aa1b757ecf086a40c84e6ed5a8219f984533bbfda25ad1836f737c71fec9b9ce6bec837cfb00fb7b2385c60e246b57902e163277ed5267dcca5c0c6c61
7
+ data.tar.gz: 4e25cbfca198b799a6cc60801235c6a56cef6a7e207c1c6b985dc470b44172fb5098a5e31be826f170c21060ad42c661edbc5e69ea8667147b18574b276d19c2
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'azdeploy'
3
- s.version = '1.0.15'
4
- s.date = '2015-03-25'
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']
@@ -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['identifier'] = cacheclient_id
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.15
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-03-25 00:00:00.000000000 Z
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