17 18 19 20 21
# File 'lib/forger/hook.rb', line 17 def hooks hooks_path = "#{Forger.root}/config/hooks.yml" data = File.exist?(hooks_path) ? YAML.load_file(hooks_path) : {} data ? data : {} # in case the file is empty end