A dummy module type that can be used to “protect” Puppet modules that exist inside of the Puppetfile “moduledir” location. Local modules will not be modified, and will not be purged when r10k removes unmanaged modules.
# File lib/r10k/module/local.rb, line 11 def self.implement?(name, args) args.is_a?(Hash) && args[:local] end
# File lib/r10k/module/local.rb, line 21 def properties { :expected => "0.0.0 (local)", :actual => "0.0.0 (local)", :type => :forge, } end
# File lib/r10k/module/local.rb, line 29 def status :insync end
# File lib/r10k/module/local.rb, line 33 def sync(opts={}) logger.debug1 _("Module %{title} is a local module, always indicating synced.") % {title: title} end
# File lib/r10k/module/local.rb, line 17 def version "0.0.0" end