diff options
author | Saku Ytti <saku@ytti.fi> | 2014-07-11 18:06:46 +0300 |
---|---|---|
committer | Saku Ytti <saku@ytti.fi> | 2014-07-11 18:06:46 +0300 |
commit | a7b2236d3a77fd268ffa9b76ee2c04a8e8f9e348 (patch) | |
tree | a8ccc9c3771e3938a32aca7c770e43768589d0f7 /lib | |
parent | 2b7c2f06d104736789f629f58f4d82f65616f586 (diff) |
support local models
if ~/.config/oxidized/model/ios.rb exists it is used, iinstead of the
system-wide model
Diffstat (limited to 'lib')
-rw-r--r-- | lib/oxidized/manager.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/oxidized/manager.rb b/lib/oxidized/manager.rb index 251f0cc..b4eaecd 100644 --- a/lib/oxidized/manager.rb +++ b/lib/oxidized/manager.rb @@ -41,7 +41,9 @@ module Oxidized @output.merge! method end def add_model _model - _model = Manager.load Config::ModelDir, _model + name = _model + _model = Manager.load File.join(Config::Root, 'model'), name + _model = Manager.load Config::ModelDir, name if _model.empty? return false if _model.empty? @model.merge! _model end |