arvicco-avalon 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,11 @@ module Avalon
3
3
  class Config
4
4
 
5
5
  def self.load env
6
- config_file = File.expand_path('../../../config/monitor.yml', __FILE__)
6
+ config_file = [
7
+ File.expand_path('../../../config/monitor.yml', __FILE__),
8
+ File.expand_path('~/.avalon/monitor.yml', __FILE__),
9
+ ].find {|f| File.exist?(f)}
10
+
7
11
  raise "No config file: #{config_file}" unless File.exist? config_file
8
12
 
9
13
  @config = YAML::load_file(config_file)[env]
@@ -1,3 +1,3 @@
1
1
  module Avalon
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: arvicco-avalon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: