[DRE-commits] [librarian-puppet] 78/97: Remove duplicated debug and info methods

Stig Sandbeck Mathisen ssm at debian.org
Tue Mar 11 12:12:52 UTC 2014


This is an automated email from the git hooks/post-receive script.

ssm pushed a commit to branch master
in repository librarian-puppet.

commit 2f9eba075c7b2fea98f63827813caf3eef5a8ea1
Author: Carlos Sanchez <csanchez at maestrodev.com>
Date:   Wed Feb 5 10:31:07 2014 +0100

    Remove duplicated debug and info methods
---
 lib/librarian/puppet/source/forge.rb         | 9 ++-------
 lib/librarian/puppet/source/git.rb           | 1 +
 lib/librarian/puppet/source/githubtarball.rb | 6 ++----
 3 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/lib/librarian/puppet/source/forge.rb b/lib/librarian/puppet/source/forge.rb
index 5373af9..7dbdf49 100644
--- a/lib/librarian/puppet/source/forge.rb
+++ b/lib/librarian/puppet/source/forge.rb
@@ -5,6 +5,8 @@ module Librarian
   module Puppet
     module Source
       class Forge
+        include Librarian::Puppet::Util
+
         class Repo
           include Librarian::Puppet::Util
 
@@ -138,13 +140,6 @@ module Librarian
             end
           end
 
-          def debug(*args, &block)
-            environment.logger.debug(*args, &block)
-          end
-          def info(*args, &block)
-            environment.logger.info(*args, &block)
-          end
-
         private
           def api_data
             return @api_data if @api_data
diff --git a/lib/librarian/puppet/source/git.rb b/lib/librarian/puppet/source/git.rb
index b0cd377..c2dea3a 100644
--- a/lib/librarian/puppet/source/git.rb
+++ b/lib/librarian/puppet/source/git.rb
@@ -23,6 +23,7 @@ module Librarian
     module Source
       class Git < Librarian::Source::Git
         include Local
+        include Librarian::Puppet::Util
 
         def cache!
           return vendor_checkout! if vendor_cached?
diff --git a/lib/librarian/puppet/source/githubtarball.rb b/lib/librarian/puppet/source/githubtarball.rb
index 7872280..92d9799 100644
--- a/lib/librarian/puppet/source/githubtarball.rb
+++ b/lib/librarian/puppet/source/githubtarball.rb
@@ -9,6 +9,8 @@ module Librarian
   module Puppet
     module Source
       class GitHubTarball
+        include Librarian::Puppet::Util
+
         class Repo
           include Librarian::Puppet::Util
 
@@ -123,10 +125,6 @@ module Librarian
             end
           end
 
-          def debug(*args, &block)
-            environment.logger.debug(*args, &block)
-          end
-
         private
 
           def api_call(path)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/librarian-puppet.git



More information about the Pkg-ruby-extras-commits mailing list