Sha256: c8be0a2ef98fc37dc0eb133a8a8e20bc0e482675473c8b4ae0727f671c0016c8

Contents?: true

Size: 775 Bytes

Versions: 28

Compression:

Stored size: 775 Bytes

Contents

# frozen_string_literal: true

require_relative '../puppet'
# The CompilableResourceType module should be either included in a class or used as a class extension
# to mark that the instance used as the 'resource type' of a resource instance
# is an object that is compatible with Puppet::Type's API wrt. compiling.
# Puppet Resource Types written in Ruby use a meta programmed Ruby Class as the type. Those classes
# are subtypes of Puppet::Type. Meta data (Pcore/puppet language) based resource types uses instances of
# a class instead.
#
module Puppet::CompilableResourceType
  # All 3.x resource types implemented in Ruby using Puppet::Type respond true.
  # Other kinds of implementations should reimplement and return false.
  def is_3x_ruby_plugin?
    true
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
puppet-8.10.0 lib/puppet/compilable_resource_type.rb
puppet-8.10.0-x86-mingw32 lib/puppet/compilable_resource_type.rb
puppet-8.10.0-x64-mingw32 lib/puppet/compilable_resource_type.rb
puppet-8.10.0-universal-darwin lib/puppet/compilable_resource_type.rb
puppet-8.9.0 lib/puppet/compilable_resource_type.rb
puppet-8.9.0-x86-mingw32 lib/puppet/compilable_resource_type.rb
puppet-8.9.0-x64-mingw32 lib/puppet/compilable_resource_type.rb
puppet-8.9.0-universal-darwin lib/puppet/compilable_resource_type.rb
puppet-8.8.1 lib/puppet/compilable_resource_type.rb
puppet-8.8.1-x86-mingw32 lib/puppet/compilable_resource_type.rb
puppet-8.8.1-x64-mingw32 lib/puppet/compilable_resource_type.rb
puppet-8.8.1-universal-darwin lib/puppet/compilable_resource_type.rb
puppet-8.7.0 lib/puppet/compilable_resource_type.rb
puppet-8.7.0-x86-mingw32 lib/puppet/compilable_resource_type.rb
puppet-8.7.0-x64-mingw32 lib/puppet/compilable_resource_type.rb
puppet-8.7.0-universal-darwin lib/puppet/compilable_resource_type.rb
puppet-8.6.0 lib/puppet/compilable_resource_type.rb
puppet-8.6.0-x86-mingw32 lib/puppet/compilable_resource_type.rb
puppet-8.6.0-x64-mingw32 lib/puppet/compilable_resource_type.rb
puppet-8.6.0-universal-darwin lib/puppet/compilable_resource_type.rb