kurchatov 0.4.2 → 0.4.3

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: 03637929698462ddf10999615c44bf1abbfdf764
4
- data.tar.gz: a6b8925c35795c75e2e62d66e4da4aeef628742a
3
+ metadata.gz: 43418a85c9b048bcfdf6c12bf698fd04ac019d2e
4
+ data.tar.gz: 76d90c39e780799a54c8804b30b32b898638e66f
5
5
  SHA512:
6
- metadata.gz: f64e8e4e28beb87c3bfac265c11d5ecb6f7d135b56f72b331bdb3f7fac7047c079bb1fabe0cadeffba103b7ae432a250897a0f79b14f1530c61167c5135d6905
7
- data.tar.gz: b3189a467b0e43b7ec2a745366c6f53401c71513c8c8014f346750a00d42f39646a830b932edf669aaf80e48ab057a1cb32a7d1eb306b97cb4f41e0dc3420506
6
+ metadata.gz: d35e7de6abfa9723ec779d8b59c62be8a772a09333d61b32c13c7c5d317a8e81ebaefce22a638f6eb824b437c50acb22a66fc2f990c431b9f69a22f81c928a70
7
+ data.tar.gz: 471e92153a3e5cde4df3bd0fb93f74ce766329806e3deb6cc6164917dac04e162d51fe4ca1aff46e5902fb23f5cb2ac21458916d2f14f83bf55c2f5760928c72
data/app/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- gem "kurchatov", "= 0.4.1"
3
+ gem "kurchatov", "= 0.4.2"
4
4
  gem "beefcake", "=0.5.0"
5
5
  gem "sys-filesystem"
6
6
  gem "sys-proctable"
data/app/Gemfile.lock CHANGED
@@ -14,7 +14,7 @@ GEM
14
14
  file-tail (1.0.12)
15
15
  tins (~> 0.5)
16
16
  ipaddress (0.8.0)
17
- kurchatov (0.4.1)
17
+ kurchatov (0.4.2)
18
18
  beefcake (>= 0.3.5)
19
19
  ohai
20
20
  libyajl2 (1.0.1)
@@ -54,7 +54,7 @@ DEPENDENCIES
54
54
  beefcake (= 0.5.0)
55
55
  ffi-rzmq
56
56
  file-tail
57
- kurchatov (= 0.4.1)
57
+ kurchatov (= 0.4.2)
58
58
  net-ntp
59
59
  net-ping
60
60
  parallel
data/debian/changelog CHANGED
@@ -1,3 +1,9 @@
1
+ riemann-client (1:0.4.2) stable; urgency=low
2
+
3
+ * Fix empty config file and change default config location.
4
+
5
+ -- Undev DevOps Team <devops@undev.ru> Mon, 15 Dec 2014 20:04:21 +0300
6
+
1
7
  riemann-client (1:0.4.1) stable; urgency=low
2
8
 
3
9
  * Bump.
@@ -18,12 +18,11 @@ module Kurchatov
18
18
  end
19
19
 
20
20
  def self.load_plugins(plugins_path, config_file)
21
- Log.error("Config file #{config_file} not found") and
22
- exit(Kurchatov::Config[:ERROR_CONFIG]) unless File.exists?(config_file)
21
+ Log.info("Config file #{config_file} not found") unless File.exists?(config_file)
23
22
  @all_plugins = Kurchatov::Plugins::DSL.load_riemann_plugins(plugins_path)
24
23
  @all_names = Array.new
25
24
  @plugins_to_run = Array.new
26
- config = YAML.load_file(config_file)
25
+ config = YAML.load_file(config_file) rescue false
27
26
  config = {} and Log.info("Empty config file '#{config_file}'") if config == false
28
27
  config.each do |name, val|
29
28
  @all_names << name
@@ -1,3 +1,3 @@
1
1
  module Kurchatov
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kurchatov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vasiliev Dmitry