summaryrefslogtreecommitdiff
path: root/lib/oxidized/config.rb
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2016-02-20 18:12:42 +0200
committerytti <saku@ytti.fi>2016-02-20 18:12:42 +0200
commit0b12bab3015e2968af3f57cee17ce39200d7306e (patch)
tree3cecb581ba3cff894bf160f83fd0bd4a90104274 /lib/oxidized/config.rb
parent0c9b345159b7cb70994d95bdd07a191fc3ad23d8 (diff)
parent4bc8dd6144c96901caf16e3090bb6114444c37c0 (diff)
Merge pull request #331 from danilopopeye/config-root-env-var
config root env var
Diffstat (limited to 'lib/oxidized/config.rb')
-rw-r--r--lib/oxidized/config.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oxidized/config.rb b/lib/oxidized/config.rb
index d2d12d8..7884625 100644
--- a/lib/oxidized/config.rb
+++ b/lib/oxidized/config.rb
@@ -3,7 +3,7 @@ module Oxidized
class NoConfig < OxidizedError; end
class InvalidConfig < OxidizedError; end
class Config
- Root = File.join ENV['HOME'], '.config', 'oxidized'
+ Root = ENV['OXIDIZED_HOME'] || File.join(ENV['HOME'], '.config', 'oxidized')
Crash = File.join Root, 'crash'
Log = File.join Root, 'log'
InputDir = File.join Directory, %w(lib oxidized input)
@@ -27,7 +27,7 @@ module Oxidized
asetus.default.timeout = 20
asetus.default.retries = 3
asetus.default.prompt = /^([\w.@-]+[#>]\s?)$/
- asetus.default.rest = '127.0.0.1:8888' # or false to disable
+ asetus.default.rest = '127.0.0.1:8888' # or false to disable
asetus.default.vars = {} # could be 'enable'=>'enablePW'
asetus.default.groups = {} # group level configuration