bmc-daemon-lib 0.12.0 → 0.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bmc-daemon-lib.gemspec +1 -1
- data/lib/bmc-daemon-lib/conf.rb +7 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc38478090010efc587f1e292a7e0e44d8bcd40e
|
4
|
+
data.tar.gz: e7f8616d0b2dda5c78a9b49f43185666b9d7f6df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb710e1b315a3a0897e2b8f090fb1a9c8597e52bbfb437a7947e995ab1d178526081df4bd2cce03ed2c744821a7159bb609189aba69afd6a0005add7d14873ea
|
7
|
+
data.tar.gz: 8558b575139af352bacfc6d5a75137f116a44b59fd3ab959aee3f8bebad653f551c2be259fae0f86fdcb76de72f962cf5984b3aff5d58a15feec47571ac2461e
|
data/bmc-daemon-lib.gemspec
CHANGED
data/lib/bmc-daemon-lib/conf.rb
CHANGED
@@ -137,16 +137,21 @@ module BmcDaemonLib
|
|
137
137
|
end
|
138
138
|
|
139
139
|
# Feature testers
|
140
|
+
def self.gem_installed? gemname
|
141
|
+
Gem::Specification.collect(&:name).include? gemname
|
142
|
+
end
|
143
|
+
|
144
|
+
|
140
145
|
def self.feature_newrelic?
|
141
146
|
ensure_init
|
142
|
-
return false
|
147
|
+
return false unless gem_installed? 'newrelic_rpm')
|
143
148
|
return false if self.at(:newrelic, :enabled) == false
|
144
149
|
return false if self.at(:newrelic, :disabled) == true
|
145
150
|
return self.at(:newrelic, :license) || false
|
146
151
|
end
|
147
152
|
def self.feature_rollbar?
|
148
153
|
ensure_init
|
149
|
-
return false
|
154
|
+
return false unless gem_installed? 'rollbar')
|
150
155
|
return false if self.at(:rollbar, :enabled) == false
|
151
156
|
return false if self.at(:rollbar, :disabled) == true
|
152
157
|
return self.at(:rollbar, :token) || false
|