summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorldep30 <dludo59@gmail.com>2016-06-15 19:28:47 +0200
committerGitHub <noreply@github.com>2016-06-15 19:28:47 +0200
commit47d2026800eb6f724626638609aa8cdaa05998b9 (patch)
tree6f0b0c6a8088f265b0e8a8eb882490852400c7de /extra
parente1559940eed40096bce292f626bac482d27c55c9 (diff)
Update rest_client.rb
Diffstat (limited to 'extra')
-rw-r--r--extra/rest_client.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/extra/rest_client.rb b/extra/rest_client.rb
index 5809457..90a64e4 100644
--- a/extra/rest_client.rb
+++ b/extra/rest_client.rb
@@ -6,7 +6,7 @@ module Oxidized
require 'asetus'
class Config
- Root = File.join ENV['HOME'], '.config', 'oxidized'
+ Root = Root = ENV['OXIDIZED_HOME'] || File.join(ENV['HOME'], '.config', 'oxidized')
end
CFGS = Asetus.new :name=>'oxidized', :load=>false, :key_to_s=>true
@@ -21,7 +21,7 @@ module Oxidized
end
restcfg = CFG.rest
- if ! restcfg.match(/^http:\/\//)
+ unless restcfg.match(/^http:\/\//)
restcfg.insert(0, 'http://')
end