bozo-scripts 0.18.1 → 0.18.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/bozo/preparers/service_diagnostics_assembly_info.rb +34 -0
- data/lib/bozo_scripts.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae7eb6268db8a5f7759156c5a68520c0103c1135
|
4
|
+
data.tar.gz: 285ce625224767f73618fe5b3269c8e44e65f99a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3aaeea21ad5130c58acb20a75ffe8cae5c09b3466d22b889c420fcc975642467ce1c6f64334400183e61624d55df46c79ea1e52a64c0031375a15fdc58e3ca97
|
7
|
+
data.tar.gz: 88bdd38fa16e0f2d7307a2839690e600751d692f84be4a615e137566e68aa5f1c754095939cde8d624ad5a402ceccb08359509bdd1368b00ed0fd8d660a2e7bf
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.18.
|
1
|
+
0.18.2
|
@@ -0,0 +1,34 @@
|
|
1
|
+
module Bozo::Preparers
|
2
|
+
|
3
|
+
class ServiceDiagnosticsAssemblyInfo
|
4
|
+
|
5
|
+
def support_email(name)
|
6
|
+
@support_email = name
|
7
|
+
end
|
8
|
+
|
9
|
+
def execute
|
10
|
+
log_info 'Generating service diagnostics assembly info'
|
11
|
+
|
12
|
+
git_hash = env['GIT_HASH_FULL']
|
13
|
+
computer_name = env['COMPUTERNAME']
|
14
|
+
path = File.expand_path(File.join('build', 'ServiceDiagnosticsAssemblyInfo.cs'))
|
15
|
+
build_url = env['BUILD_URL']
|
16
|
+
repo_url = `git config --get remote.origin.url`.strip
|
17
|
+
team_email = @support_email
|
18
|
+
|
19
|
+
log_debug "Commit hash: #{git_hash}"
|
20
|
+
log_debug "Computer name: #{computer_name}" if computer_name
|
21
|
+
log_debug "Build url: #{build_url}"
|
22
|
+
log_debug "Repo url: #{repo_url}"
|
23
|
+
log_debug "Team email: #{team_email}"
|
24
|
+
log_debug "Path: #{path}"
|
25
|
+
|
26
|
+
File.open(path, 'w+') do |f|
|
27
|
+
f << "[assembly: Zopa.ServiceDiagnostics.ProjectInformation(\"#{repo_url}\", \"#{team_email}\")]\n"
|
28
|
+
f << "[assembly: Zopa.ServiceDiagnostics.BuildInformation(\"#{git_hash}\", \"#{Time.now}\", \"#{computer_name}\", \"#{build_url}\")]"
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
data/lib/bozo_scripts.rb
CHANGED
@@ -21,6 +21,7 @@ require 'bozo/packagers/rubygems'
|
|
21
21
|
require 'bozo/packagers/nuget'
|
22
22
|
require 'bozo/preparers/common_assembly_info'
|
23
23
|
require 'bozo/preparers/file_templating'
|
24
|
+
require 'bozo/preparers/service_diagnostics_assembly_info'
|
24
25
|
require 'bozo/preparers/sql_server'
|
25
26
|
require 'bozo/publishers/file_copy'
|
26
27
|
require 'bozo/publishers/nuget'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bozo-scripts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.18.
|
4
|
+
version: 0.18.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Garry Shutler
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-06-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -110,6 +110,7 @@ files:
|
|
110
110
|
- lib/bozo/packagers/rubygems.rb
|
111
111
|
- lib/bozo/preparers/common_assembly_info.rb
|
112
112
|
- lib/bozo/preparers/file_templating.rb
|
113
|
+
- lib/bozo/preparers/service_diagnostics_assembly_info.rb
|
113
114
|
- lib/bozo/preparers/sql_server.rb
|
114
115
|
- lib/bozo/publishers/file_copy.rb
|
115
116
|
- lib/bozo/publishers/nuget.rb
|