mongodb-graphite 1.0.3 → 1.0.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3bd5bffcfab18ac42cfda4c201bdf7587d617a71
4
- data.tar.gz: d97bf58a7fb192f142e8856325c69ea4553b405b
3
+ metadata.gz: 0f8e6fdcff152033e9dfc9996a7f2b4a970bf2fa
4
+ data.tar.gz: af4a354f5e80cbe01be0526b9a1ad9577f0e0190
5
5
  SHA512:
6
- metadata.gz: ef5ed7a80f96f89fb6ba7d3f94bbaeb6b030bc56f6107ddbb078743d177a445cf72991a654b892856fc3dcbe24bf119cbc8015157723fd8c859239319fd2796c
7
- data.tar.gz: 2ff3aff88da67f100e58dc27250ba53b8180e43ac88e627f79ce6de5fca64587afa534b19f2d4ec484562330d051e2a1e247bb6d42b441fda535223dc4c7ed72
6
+ metadata.gz: 2eb334866d958de8ea3e1626a16fba2c0ea11ad2f623096bcefd4d0614c7aa3f1b15f7a1a88571142527e72118cd1da87fcb1d5e1e29f9c2641c73f86d585aec
7
+ data.tar.gz: d6d4411ca315ba06323dd644c7db8c4eb6734a4dd4634a39700c6c1a07d96d4a211f32a0d0ce7e347c460b3eeba2b16b32deca14c9aaebc214032a079d5ae2cf
data/bin/mongodb-graphite CHANGED
@@ -6,8 +6,9 @@ require 'daemons'
6
6
  require 'simple-graphite'
7
7
 
8
8
  conf_dir = File.expand_path(ENV['MONGODB_GRAPHITE_DIR'] || '.')
9
+ conf_file = File.expand_path(ENV['MONGODB_GRAPHITE_FILE'] || 'mongodb-graphite.yml')
9
10
 
10
- config = MongodbGraphite::Configuration.new(conf_dir)
11
+ config = MongodbGraphite::Configuration.new(conf_dir, conf_file)
11
12
 
12
13
  daemon_options = {
13
14
  :multiple => false,
@@ -2,11 +2,11 @@ require 'yaml'
2
2
 
3
3
  module MongodbGraphite
4
4
  class Configuration
5
- def initialize(dir)
6
- reload(dir)
5
+ def initialize(dir, yml)
6
+ reload(dir, yml)
7
7
  end
8
8
 
9
- def reload(dir)
9
+ def reload(dir, yml)
10
10
  @config = {
11
11
  :log_dir => 'log',
12
12
  :pid_dir => 'pids',
@@ -16,7 +16,7 @@ module MongodbGraphite
16
16
  :instances_file => nil
17
17
  }
18
18
 
19
- config_file_path = File.join(dir, 'config', 'mongodb-graphite.yml')
19
+ config_file_path = File.join(dir, 'config', yml)
20
20
  if File.exist? config_file_path
21
21
  config_file = YAML.load_file(config_file_path)
22
22
  @config.keys.each do |key|
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "mongodb-graphite"
6
- s.version = '1.0.3'
6
+ s.version = '1.0.4'
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Grégoire Seux"]
9
9
  s.email = ["g.seux@criteo.com"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongodb-graphite
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Grégoire Seux