internet_box_logger 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a59ffcb1c5b1539ebbd924f9ab72bc88258d4f46
4
- data.tar.gz: 36e2d9162001a46547a45967370391ff01a1ff00
3
+ metadata.gz: c305e96215335116ad8992df4ed772f4bcf403f6
4
+ data.tar.gz: b1650145719338b358050e0da49071bbec255198
5
5
  SHA512:
6
- metadata.gz: b680ac59f0250ec7f86ed70aef66203696d3eb5cd9d93436f2200779594a3b9503b2eb3cda37e23bcd79c1ad42e03398c9cf03e13c533b96328cd8584c026eb1
7
- data.tar.gz: 33c31ae69d29a7ba714349e621d0fff4d4a514135530547424d7eda388dcc38b34a97fb3b521038eddffb68f73124f873bc7e4d051f0502c3205c38738e093df
6
+ metadata.gz: 3b4ec3fd4ce43328add4b810bcb9ec525bb31f7207a363666f18d3bb8a3d90fbbe49915b56eddeff2b5bb8bf4cfa2a7ce64eeadfbc7374ddd2667ec13abf1915
7
+ data.tar.gz: 74a2431827daed9e6d17b06568228f59106e9328352bec25f0fc9c8940066cf2250467ffc189339648382cffb797ac5c43376638d1a3e5ff1e81aebb77fd8f29
data/README.md CHANGED
@@ -57,10 +57,9 @@ kibana_path: /opt/kibana
57
57
 
58
58
  server_port: 5000
59
59
 
60
- default_elastic_search:
61
- elastic_servers:
62
- - 127.0.0.1:9200
63
- elastic_binary: /opt/elasticsearch/bin/elasticsearch
60
+ elastic_servers:
61
+ - 127.0.0.1:9200
62
+ elastic_binary: /opt/elasticsearch/bin/elasticsearch
64
63
  ```
65
64
 
66
65
  * `box_type` specifies the module in charge of gathering data from your box. it Should not be changed but you can define
@@ -75,8 +74,6 @@ ElasticSearch on the same machine as the gem is installed, then it should alread
75
74
  * `elastic_binary` defines where your [ElasticSearch][ELK] is installed. This one is only used by a rake task
76
75
  (to stop/start and get info) about the ElasticSearch cluster. This is not really needed for the log process to work.
77
76
  Only to enable stop/start of the server.
78
- When you change it in your config, you do not need to set it in the `default_elastic_search` hash, but instead you can
79
- directly set it at the root.
80
77
 
81
78
  **These values are the default and you don't need to create a new config file if they already fit your needs.**
82
79
  And it should be the case if you installed [ELK] as a whole on the machine you are using this gem.
@@ -1,13 +1,19 @@
1
+ # These are the default values for some mandatory settings
2
+ # Feel free to override these values in any of the config files you choose to use.
1
3
 
4
+ # The type of box.
2
5
  box_type: InternetBoxLogger::Parsers::FreeboxV5Parser
3
6
 
7
+ # Defines the interval between two calls as defined in cron
4
8
  cron_interval: 1
5
9
 
10
+ # Where is Kibana installed
6
11
  kibana_path: /opt/kibana
7
12
 
13
+ # When running this gem as a server, which port to bind to
8
14
  server_port: 5000
9
15
 
10
- default_elastic_search:
11
- elastic_servers:
12
- - 127.0.0.1:9200
13
- elastic_binary: /opt/elasticsearch/bin/elasticsearch
16
+ # ElasticSearch default installation parameters
17
+ elastic_binary: /opt/elasticsearch/bin/elasticsearch
18
+ elastic_servers:
19
+ - 127.0.0.1:9200
@@ -4,11 +4,11 @@ module InternetBoxLogger
4
4
  module Server
5
5
 
6
6
  def self.[]
7
- EasyAppHelper.config[:elastic_servers] || EasyAppHelper.config[:default_elastic_search]['elastic_servers']
7
+ EasyAppHelper.config[:elastic_servers]
8
8
  end
9
9
 
10
10
  def self.local_path
11
- EasyAppHelper.config[:elastic_binary] || EasyAppHelper.config[:default_elastic_search]['elastic_binary']
11
+ EasyAppHelper.config[:elastic_binary]
12
12
  end
13
13
 
14
14
  def self.local?
@@ -1,3 +1,3 @@
1
1
  module InternetBoxLogger
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: internet_box_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laurent B
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-31 00:00:00.000000000 Z
11
+ date: 2015-01-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler