haproxy2rpm 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/haproxy2rpm +0 -16
- data/haproxy2rpm.gemspec +3 -3
- data/lib/haproxy2rpm/version.rb +1 -1
- metadata +13 -11
data/bin/haproxy2rpm
CHANGED
@@ -5,14 +5,6 @@ $:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])
|
|
5
5
|
require 'rubygems'
|
6
6
|
require 'optparse'
|
7
7
|
|
8
|
-
NEW_RELIC_CONFIG_PATH = File.join(ENV['HOME'], '.newrelic', 'newrelic.yml')
|
9
|
-
|
10
|
-
help = <<HELP
|
11
|
-
haproxy2rpm
|
12
|
-
|
13
|
-
Coniguration for newrelic is read from #{NEW_RELIC_CONFIG_PATH}
|
14
|
-
HELP
|
15
|
-
|
16
8
|
options = {
|
17
9
|
:daemonize => false,
|
18
10
|
:version => false,
|
@@ -22,7 +14,6 @@ options = {
|
|
22
14
|
}
|
23
15
|
|
24
16
|
opts = OptionParser.new do |opts|
|
25
|
-
# opts.banner = help
|
26
17
|
opts.on("-D", "--daemonize", "Daemonize") do
|
27
18
|
options[:daemonize] = true
|
28
19
|
end
|
@@ -48,7 +39,6 @@ opts = OptionParser.new do |opts|
|
|
48
39
|
end
|
49
40
|
|
50
41
|
opts.on_tail("-h", "--help", "Show this message") do
|
51
|
-
puts opts.banner
|
52
42
|
puts opts
|
53
43
|
exit
|
54
44
|
end
|
@@ -72,16 +62,10 @@ end
|
|
72
62
|
unless options[:syslog] || File.exists?(log_file)
|
73
63
|
puts 'please proivde a valid path to a haproxy log file'
|
74
64
|
puts ''
|
75
|
-
puts help
|
76
65
|
puts opts
|
77
66
|
exit(1)
|
78
67
|
end
|
79
68
|
|
80
|
-
unless File.exists?(NEW_RELIC_CONFIG_PATH)
|
81
|
-
puts "please copy your newrelic agent configuration to #{NEW_RELIC_CONFIG_PATH}"
|
82
|
-
exit(1)
|
83
|
-
end
|
84
|
-
|
85
69
|
trap("SIGINT") {
|
86
70
|
Haproxy2Rpm.stop
|
87
71
|
exit(0)
|
data/haproxy2rpm.gemspec
CHANGED
@@ -5,9 +5,9 @@ require "haproxy2rpm/version"
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "haproxy2rpm"
|
7
7
|
s.version = Haproxy2Rpm::VERSION
|
8
|
-
s.authors = ["Patrick Huesler"]
|
9
|
-
s.email = ["patrick.huesler@
|
10
|
-
s.homepage = ""
|
8
|
+
s.authors = ["Patrick Huesler", "Martin Rehfeld"]
|
9
|
+
s.email = ["patrick.huesler@wooga.com", "martin.rehfeld@wooga.com"]
|
10
|
+
s.homepage = "https://github.com/wooga/haproxy2rpm"
|
11
11
|
s.summary = "Sending haproxy logs to new relic rpm"
|
12
12
|
s.description = "Sending haproxy logs to new relic rpm"
|
13
13
|
s.add_dependency "newrelic_rpm"
|
data/lib/haproxy2rpm/version.rb
CHANGED
metadata
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haproxy2rpm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Patrick Huesler
|
9
|
+
- Martin Rehfeld
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
@@ -14,7 +15,7 @@ default_executable:
|
|
14
15
|
dependencies:
|
15
16
|
- !ruby/object:Gem::Dependency
|
16
17
|
name: newrelic_rpm
|
17
|
-
requirement: &
|
18
|
+
requirement: &2157686580 !ruby/object:Gem::Requirement
|
18
19
|
none: false
|
19
20
|
requirements:
|
20
21
|
- - ! '>='
|
@@ -22,10 +23,10 @@ dependencies:
|
|
22
23
|
version: '0'
|
23
24
|
type: :runtime
|
24
25
|
prerelease: false
|
25
|
-
version_requirements: *
|
26
|
+
version_requirements: *2157686580
|
26
27
|
- !ruby/object:Gem::Dependency
|
27
28
|
name: eventmachine-tail
|
28
|
-
requirement: &
|
29
|
+
requirement: &2157686160 !ruby/object:Gem::Requirement
|
29
30
|
none: false
|
30
31
|
requirements:
|
31
32
|
- - ! '>='
|
@@ -33,10 +34,10 @@ dependencies:
|
|
33
34
|
version: '0'
|
34
35
|
type: :runtime
|
35
36
|
prerelease: false
|
36
|
-
version_requirements: *
|
37
|
+
version_requirements: *2157686160
|
37
38
|
- !ruby/object:Gem::Dependency
|
38
39
|
name: rake
|
39
|
-
requirement: &
|
40
|
+
requirement: &2157712860 !ruby/object:Gem::Requirement
|
40
41
|
none: false
|
41
42
|
requirements:
|
42
43
|
- - ! '>='
|
@@ -44,10 +45,10 @@ dependencies:
|
|
44
45
|
version: '0'
|
45
46
|
type: :development
|
46
47
|
prerelease: false
|
47
|
-
version_requirements: *
|
48
|
+
version_requirements: *2157712860
|
48
49
|
- !ruby/object:Gem::Dependency
|
49
50
|
name: shoulda-context
|
50
|
-
requirement: &
|
51
|
+
requirement: &2157712440 !ruby/object:Gem::Requirement
|
51
52
|
none: false
|
52
53
|
requirements:
|
53
54
|
- - ! '>='
|
@@ -55,10 +56,11 @@ dependencies:
|
|
55
56
|
version: '0'
|
56
57
|
type: :development
|
57
58
|
prerelease: false
|
58
|
-
version_requirements: *
|
59
|
+
version_requirements: *2157712440
|
59
60
|
description: Sending haproxy logs to new relic rpm
|
60
61
|
email:
|
61
|
-
- patrick.huesler@
|
62
|
+
- patrick.huesler@wooga.com
|
63
|
+
- martin.rehfeld@wooga.com
|
62
64
|
executables:
|
63
65
|
- haproxy2rpm
|
64
66
|
extensions: []
|
@@ -80,7 +82,7 @@ files:
|
|
80
82
|
- test/haproxy2pm_test.rb
|
81
83
|
- test/test_helper.rb
|
82
84
|
has_rdoc: true
|
83
|
-
homepage:
|
85
|
+
homepage: https://github.com/wooga/haproxy2rpm
|
84
86
|
licenses: []
|
85
87
|
post_install_message:
|
86
88
|
rdoc_options: []
|