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 10 def self.implement?(name, args) args[:local] || args[:type].to_s == 'local' end
statically_defined_version(*)
click to toggle source
# File lib/r10k/module/local.rb, line 14 def self.statically_defined_version(*) "0.0.0" end
Public Instance Methods
properties()
click to toggle source
# File lib/r10k/module/local.rb, line 22 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 30 def status :insync end
sync(opts={})
click to toggle source
@param [Hash] opts Deprecated @return [Boolean] false, because local modules are always considered in-sync
# File lib/r10k/module/local.rb, line 36 def sync(opts={}) logger.debug1 _("Module %{title} is a local module, always indicating synced.") % {title: title} false end
version()
click to toggle source
# File lib/r10k/module/local.rb, line 18 def version self.class.statically_defined_version end