Sha256: 608bf237d298f1bccc59ff0744b8a022a35e868e58176b574f6dc38227687a83
Contents?: true
Size: 937 Bytes
Versions: 4
Compression:
Stored size: 937 Bytes
Contents
module Puppet::Module::Tool::Utils # = Settings # # This module contains methods for interacting with Puppet's settings files. module Settings def prepare_settings(options = {}) return if @settings_prepared if options[:config] Puppet.settings.send(:set_value, :config, options[:config], :cli) end Puppet.setdefaults(:puppet_module, :puppet_module_repository => [Puppet::Module::Tool::REPOSITORY_URL, "The module repository"], :puppet_module_working_dir => ['$vardir/puppet-module', "The directory in which module tool data is stored"]) Puppet::Module::Tool.working_dir.mkpath Puppet.settings.use(:puppet_module) Puppet.settings.parse [:puppet_module_repository].each do |key| if options[key] Puppet.settings.send(:set_value, key, options[key], :cli) end end @settings_prepared = true end end end
Version data entries
4 entries across 4 versions & 1 rubygems