Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,12 @@ mod "puppetlabs/ntp",

mod "apache",
:tarball => "https://forge.puppetlabs.com/puppetlabs/apache/0.6.0.tar.gz"
```

#Deploy mysql module into modules/databases/mysql with the :subdir param
mod "mysql",
:git => "[email protected]:mysql.git",
:subdir => "databases"
```
## Setting up for development and running the specs
Just clone the repo and run the following commands:
```
Expand Down
7 changes: 5 additions & 2 deletions lib/librarian/puppet/simple/installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ module Installer
# iterator mixin
def install!
each_module do |repo|

print_verbose "\n##### processing module #{repo[:name]}..."

module_path = module_path()
if repo[:subdir]
module_path = File.join(module_path, repo[:subdir])
FileUtils.mkdir_p(module_path) unless File.exists?(module_path)
end
module_dir = File.join(module_path, repo[:name])

unless File.exists?(module_dir)
Expand Down