[DRE-commits] [librarian-puppet] 08/97: Fail if path is not a puppet module
Stig Sandbeck Mathisen
ssm at debian.org
Tue Mar 11 12:12:47 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 bd67d90052abbf64715b497bcabab7ddd293e15a
Author: Carlos Sanchez <csanchez at maestrodev.com>
Date: Mon Oct 29 20:13:37 2012 +0100
Fail if path is not a puppet module
---
lib/librarian/puppet/source/local.rb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/librarian/puppet/source/local.rb b/lib/librarian/puppet/source/local.rb
index e2d4e16..e8ceb56 100644
--- a/lib/librarian/puppet/source/local.rb
+++ b/lib/librarian/puppet/source/local.rb
@@ -10,6 +10,7 @@ module Librarian
name, version = manifest.name, manifest.version
found_path = found_path(name)
+ raise Error, "Path for #{name} doesn't contain a puppet module" if found_path.nil?
if name.include? '/'
new_name = name.split('/').last
@@ -47,6 +48,7 @@ module Librarian
return true if path.join('manifests').exist?
return true if path.join('lib').join('puppet').exist?
return true if path.join('lib').join('facter').exist?
+ debug { "Could not find manifests, lib/puppet or lib/facter under #{path}, assuming is not a puppet module" }
false
end
end
--
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