Skip to content

Commit

Permalink
Merge pull request #246 from njam/issue-246
Browse files Browse the repository at this point in the history
Installation of modules without metadata nor modulefile fails
  • Loading branch information
carlossg committed Aug 8, 2014
2 parents 08eb2c1 + 83e928c commit 3416850
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
10 changes: 10 additions & 0 deletions features/install.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 3 additions & 2 deletions lib/librarian/puppet/source/local.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,9 @@ def parsed_metadata
end
}
else
warn { "Could not find metadata.json nor Modulefile at #{filesystem_path}" }
{}
{
'dependencies' => []
}
end
@metadata
end
Expand Down

0 comments on commit 3416850

Please sign in to comment.