Sha256: a3a6101ecd1a36972494b92cd93cb2f5fc3189ff60a78bd987e1faf2f0aa56f9
Contents?: true
Size: 894 Bytes
Versions: 1
Compression:
Stored size: 894 Bytes
Contents
require 'r10k/module' # 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. class R10K::Module::Local < R10K::Module::Base R10K::Module.register(self) def self.implement?(name, args) args.is_a?(Hash) && (args[:local] || args[:type].to_s == 'local') end def version "0.0.0" end def properties { :expected => "0.0.0 (local)", :actual => "0.0.0 (local)", :type => :forge, } end def status :insync end # @param [Hash] opts Deprecated # @return [Boolean] false, because local modules are always considered in-sync def sync(opts={}) logger.debug1 _("Module %{title} is a local module, always indicating synced.") % {title: title} false end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
r10k-3.12.0 | lib/r10k/module/local.rb |