Control the install location for modules.
prepare the module install location. This will create the location if needed.
# File lib/puppet/module_tool/install_directory.rb, line 17 def prepare(module_name, version) return if @target.directory? begin @target.mkpath Puppet.notice "Created target directory #{@target}" rescue SystemCallError => orig_error raise converted_to_friendly_error(module_name, version, orig_error) end end
# File lib/puppet/module_tool/install_directory.rb, line 11 def initialize(target) @target = target end