class R10K::Module::Local
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.
Public Class Methods
implement?(name, args)
click to toggle source
# File lib/r10k/module/local.rb, line 11 def self.implement?(name, args) args.is_a?(Hash) && args[:local] end
Public Instance Methods
properties()
click to toggle source
# File lib/r10k/module/local.rb, line 21 def properties { :expected => "0.0.0 (local)", :actual => "0.0.0 (local)", :type => :forge, } end
status()
click to toggle source
# File lib/r10k/module/local.rb, line 29 def status :insync end
sync()
click to toggle source
# File lib/r10k/module/local.rb, line 33 def sync logger.debug1 "Module #{title} is a local module, always indicating synced." end
version()
click to toggle source
# File lib/r10k/module/local.rb, line 17 def version "0.0.0" end