summaryrefslogtreecommitdiff
path: root/lib/oxidized/manager.rb
diff options
context:
space:
mode:
authorWild Kat <wk@futureinquestion.net>2018-04-11 19:58:30 +0200
committerWild Kat <wk@futureinquestion.net>2018-04-11 19:58:30 +0200
commit01d7f29905fd9ca712e8b640408425cf2d3ad64d (patch)
treec1ce6ef468740d970023e40935397047a2e8a743 /lib/oxidized/manager.rb
parent91deea2ef8a7ae5f9ed6b523b720f9cf2c3f33b9 (diff)
standardize on verbose hash methods
Diffstat (limited to 'lib/oxidized/manager.rb')
-rw-r--r--lib/oxidized/manager.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/oxidized/manager.rb b/lib/oxidized/manager.rb
index bf28ae7..d2ef4d2 100644
--- a/lib/oxidized/manager.rb
+++ b/lib/oxidized/manager.rb
@@ -49,13 +49,13 @@ module Oxidized
@model.merge! _model
end
def add_source _source
- return nil if @source.key? _source
+ return nil if @source.has_key? _source
_source = Manager.load Config::SourceDir, _source
return false if _source.empty?
@source.merge! _source
end
def add_hook _hook
- return nil if @hook.key? _hook
+ return nil if @hook.has_key? _hook
name = _hook
_hook = Manager.load File.join(Config::Root, 'hook'), name
_hook = Manager.load Config::HookDir, name if _hook.empty?