vendor/librarian/lib/librarian/source/local.rb in librarian-puppet-0.9.1 vs vendor/librarian/lib/librarian/source/local.rb in librarian-puppet-0.9.2.pre

- old
+ new

@@ -1,16 +1,14 @@ -require 'librarian/helpers/debug' require 'librarian/support/abstract_method' module Librarian module Source # Requires that the including source class have methods: # #path # #environment module Local - include Helpers::Debug include Support::AbstractMethod abstract_method :path, :fetch_version, :fetch_dependencies def manifests(name) @@ -43,9 +41,21 @@ end private abstract_method :manifest? # (name, path) -> boolean + + def info(*args, &block) + environment.logger.info(*args, &block) + end + + def debug(*args, &block) + environment.logger.debug(*args, &block) + end + + def relative_path_to(path) + environment.logger.relative_path_to(path) + end end end end