metrix 0.0.9 → 0.0.10
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.
- data/lib/metrix/cli.rb +1 -2
- data/lib/metrix/version.rb +1 -1
- metadata +1 -1
data/lib/metrix/cli.rb
CHANGED
|
@@ -110,7 +110,6 @@ module Metrix
|
|
|
110
110
|
reporter << m
|
|
111
111
|
end
|
|
112
112
|
end
|
|
113
|
-
|
|
114
113
|
reporter.flush
|
|
115
114
|
rescue SystemExit
|
|
116
115
|
$running = false
|
|
@@ -135,7 +134,7 @@ module Metrix
|
|
|
135
134
|
end
|
|
136
135
|
|
|
137
136
|
def reporter
|
|
138
|
-
if attributes[:opentsdb]
|
|
137
|
+
@reporter ||= if attributes[:opentsdb]
|
|
139
138
|
require "metrix/opentsdb"
|
|
140
139
|
uri = URI.parse(attributes[:opentsdb])
|
|
141
140
|
Metrix::OpenTSDB.new(uri.host, uri.port)
|
data/lib/metrix/version.rb
CHANGED