azdeploy 1.0.32 → 1.0.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/azdeploy.gemspec +3 -3
- data/lib/build.rb +4 -4
- data/lib/transform.rb +4 -0
- 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: 5ecdae0f8ea2256d9052a728e23a1be7485d1630
|
4
|
+
data.tar.gz: 21a71377457ac6a58a4cdb75d4fc12ffbc127add
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f49f2270b4705d7f0e6283b1741f0b31fbb08cf7b85ad54cd494216c151e220125d81858157c387559511213f2f13c88c71ae8eed06939039376184cf1b27c68
|
7
|
+
data.tar.gz: 943d2e7bd697a4e59c17ff6c75feb2d762d8f1ee9760d853cc0fb47a3f7fa7f700299568e6add869d1c9864e815c6ac456f84cda048c9e1a6116140c746b830b
|
data/azdeploy.gemspec
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'azdeploy'
|
3
|
-
s.version = '1.0.
|
4
|
-
s.date = '2015-12-
|
3
|
+
s.version = '1.0.33'
|
4
|
+
s.date = '2015-12-21'
|
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']
|
8
8
|
s.email = 'subatta@hotmail.com'
|
9
|
-
s.files = Dir['{test,lib,docs}/**/*'] + ['azdeploy.gemspec']
|
9
|
+
s.files = Dir['{test,lib,docs,rakefile.rb}/**/*'] + ['azdeploy.gemspec']
|
10
10
|
s.homepage = 'http://rubygems.org/gems/azdeploy'
|
11
11
|
s.license = 'MIT'
|
12
12
|
end
|
data/lib/build.rb
CHANGED
@@ -109,7 +109,7 @@ def versioning project=nil, file=nil
|
|
109
109
|
# nuget (not full semver 2.0.0-rc.1 support) see http://nuget.codeplex.com/workitem/1796
|
110
110
|
ENV["#{project}_NUGET_VERSION"] = ver.format('%M.%m.%p%s')
|
111
111
|
|
112
|
-
revision = (ENV['
|
112
|
+
revision = (ENV['BUILD_COUNTER'] || ver.patch).to_i
|
113
113
|
|
114
114
|
# extensible number w/ git hash
|
115
115
|
ENV["#{project}_BUILD_VERSION"] = ver.format('%M.%m.%p%s') + ".#{commitData[0]}"
|
@@ -118,7 +118,7 @@ def versioning project=nil, file=nil
|
|
118
118
|
ENV["#{project}_FORMAL_VERSION"] = "#{ SemVer.new(ver.major, ver.minor, revision).format '%M.%m.%p'}"
|
119
119
|
else
|
120
120
|
ver = SemVer.find
|
121
|
-
revision = (ENV['
|
121
|
+
revision = (ENV['BUILD_COUNTER'] || ver.patch).to_i
|
122
122
|
var = SemVer.new(ver.major, ver.minor, revision, ver.special)
|
123
123
|
|
124
124
|
commitData = commit_data()
|
@@ -139,7 +139,7 @@ def versioning project=nil, file=nil
|
|
139
139
|
end
|
140
140
|
end
|
141
141
|
|
142
|
-
|
142
|
+
# Tell teamcity our decision to set the build.number environment variable
|
143
143
|
def teamcity_build_number
|
144
144
|
platform_version = Time.new.strftime('%y.%-m.%-d') + ".#{(ENV['BUILD_NUMBER'] || '0')}"
|
145
145
|
puts "##teamcity[buildNumber '#{platform_version}']"
|
@@ -221,7 +221,7 @@ def copy_runtime_artifacts(package)
|
|
221
221
|
copy_output_files source, "*.*", dest
|
222
222
|
end
|
223
223
|
|
224
|
-
|
224
|
+
# Gathers all rake files and runs the task list
|
225
225
|
def package rake_files_path, task_list
|
226
226
|
if(task_list.nil?)
|
227
227
|
puts "No task to execute"
|
data/lib/transform.rb
CHANGED
@@ -159,6 +159,7 @@ class Transform
|
|
159
159
|
node['name'] = @service_name if !node.nil?
|
160
160
|
|
161
161
|
node = doc.at_css 'Certificates'
|
162
|
+
|
162
163
|
node.replace(get_value 'Certificates_csdef') if !node.nil?
|
163
164
|
|
164
165
|
node = doc.at_css 'Endpoints'
|
@@ -177,10 +178,12 @@ class Transform
|
|
177
178
|
node.replace(get_value 'LocalResources') if !node.nil?
|
178
179
|
|
179
180
|
File.write file, doc.to_xml
|
181
|
+
|
180
182
|
}
|
181
183
|
end
|
182
184
|
|
183
185
|
def transform_cscfg
|
186
|
+
|
184
187
|
csdef = Dir.glob '**/*.cscfg'
|
185
188
|
csdef.each{ |file|
|
186
189
|
doc = Nokogiri::XML(File.read file)
|
@@ -192,6 +195,7 @@ class Transform
|
|
192
195
|
node['name'] = @service_name if !node.nil?
|
193
196
|
|
194
197
|
node = doc.at_css 'Certificates'
|
198
|
+
|
195
199
|
node.replace(get_value 'Certificates_cscfg') if !node.nil?
|
196
200
|
|
197
201
|
node = doc.at_css 'ConfigurationSettings'
|
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.33
|
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-12-
|
11
|
+
date: 2015-12-21 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
|