internet_box_logger 0.1.4 → 0.1.6
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.
- checksums.yaml +4 -4
- data/bin/internet_box_logger +7 -2
- data/lib/internet_box_logger/version.rb +1 -1
- 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: bcce0fe4d530f00f1a861448587bac61b724bd0e
|
|
4
|
+
data.tar.gz: c058b9499d2d2ecefd4cd5f49c8c1df1d451aa04
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ace022f9af88d21933191619a6effd283999db51ca89eb866956ce5ac5efcf7d39cf53adee7bae8e8537707ecd0d86453de301567c11ad7f39ce2f6f50e3a2b7
|
|
7
|
+
data.tar.gz: 249f15f6c8fc2ed9dc16a561c6f5c63a710640f187931a76722c2aae32eee22c78cac8719999b1f132fdf03ed5a5cb7e12514cc6f67153febdc3154b3f668df3
|
data/bin/internet_box_logger
CHANGED
|
@@ -8,14 +8,19 @@ require 'tasks/internet_box_logger_tasks'
|
|
|
8
8
|
module InternetBoxLogger
|
|
9
9
|
class Script
|
|
10
10
|
include EasyAppHelper
|
|
11
|
-
include InternetBoxLogger::Tasks
|
|
12
11
|
APP_NAME = 'The Internet Box Logger'
|
|
13
12
|
DESCRIPTION = 'This application will log your Internet box metrics into ElasticSearch.'
|
|
14
13
|
|
|
15
14
|
def initialize
|
|
16
15
|
# Providing this data is optional but brings better logging and online help
|
|
17
16
|
config.describes_application(app_name: APP_NAME, app_version: InternetBoxLogger::VERSION, app_description: DESCRIPTION)
|
|
18
|
-
|
|
17
|
+
# Ugly hack to fix issue with easy_app_helper way of managing gem config files
|
|
18
|
+
gem_conf_file = File.join EasyAppHelper::Core::Config::Places.gem_root_path(__FILE__), 'config', 'internet_box_logger.conf'
|
|
19
|
+
config.internal_configs[:gem] = {
|
|
20
|
+
content: Hash[YAML::load(File.open(gem_conf_file)).map { |k, v| [k.to_sym, v] }],
|
|
21
|
+
source: gem_conf_file,
|
|
22
|
+
origin: :internet_box_logger
|
|
23
|
+
}
|
|
19
24
|
end
|
|
20
25
|
|
|
21
26
|
def run
|