[DRE-commits] [librarian-puppet] 47/153: Expect modules to have only "Puppetfile" (no Modulefile nor metadata.json)
Stig Sandbeck Mathisen
ssm at debian.org
Wed Jun 1 20:30:39 UTC 2016
This is an automated email from the git hooks/post-receive script.
ssm pushed a commit to branch master
in repository librarian-puppet.
commit 83e928c8c82c08a52859a51cf8c8e8f70d16f68c
Author: Reto Kaiser <reto at cargomedia.ch>
Date: Fri Aug 8 14:12:24 2014 +0200
Expect modules to have only "Puppetfile" (no Modulefile nor metadata.json)
---
features/install.feature | 10 ++++++++++
lib/librarian/puppet/source/local.rb | 5 +++--
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/features/install.feature b/features/install.feature
index 77fe34d..876bba1 100644
--- a/features/install.feature
+++ b/features/install.feature
@@ -40,3 +40,13 @@ Feature: cli/install
"""
Unable to parse .*/bad_modulefile/Modulefile, ignoring: Missing version
"""
+
+ Scenario: Running install with no Modulefile nor metadata.json
+ Given a file named "Puppetfile" with:
+ """
+ forge "http://forge.puppetlabs.com"
+
+ mod 'puppetlabs/stdlib', :git => 'https://github.com/puppetlabs/puppetlabs-stdlib.git', :ref => '3.0.0'
+ """
+ When I run `librarian-puppet install`
+ Then the exit status should be 0
diff --git a/lib/librarian/puppet/source/local.rb b/lib/librarian/puppet/source/local.rb
index 26b04fb..81e1082 100644
--- a/lib/librarian/puppet/source/local.rb
+++ b/lib/librarian/puppet/source/local.rb
@@ -118,8 +118,9 @@ module Librarian
end
}
else
- warn { "Could not find metadata.json nor Modulefile at #{filesystem_path}" }
- {}
+ {
+ 'dependencies' => []
+ }
end
@metadata
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