-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from phinze/fixing-path-option
--path is no longer hard coded to _modules/_
- Loading branch information
Showing
4 changed files
with
35 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
*.gem | ||
Gemfile.lock | ||
tmp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Feature: cli/install | ||
In order to be worth anything | ||
Puppet librarian needs to install modules properly | ||
|
||
Scenario: Installing a module and its dependencies | ||
Given a file named "Puppetfile" with: | ||
""" | ||
forge "http://forge.puppetlabs.com" | ||
mod 'puppetlabs/apt' | ||
""" | ||
When I run `librarian-puppet install` | ||
Then the exit status should be 0 | ||
And the file "modules/apt/Modulefile" should match /name *'puppetlabs-apt'/ | ||
And the file "modules/stdlib/Modulefile" should match /name *'puppetlabs-stdlib'/ | ||
|
||
Scenario: Changing the path | ||
Given a directory named "puppet" | ||
And a file named "Puppetfile" with: | ||
""" | ||
forge "http://forge.puppetlabs.com" | ||
mod 'puppetlabs/apt' | ||
""" | ||
When I run `librarian-puppet install --path puppet/modules` | ||
And I run `librarian-puppet config` | ||
Then the exit status should be 0 | ||
And the output from "librarian-puppet config" should contain "path: puppet/modules" | ||
And the file "puppet/modules/apt/Modulefile" should match /name *'puppetlabs-apt'/ | ||
And the file "puppet/modules/stdlib/Modulefile" should match /name *'puppetlabs-stdlib'/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters