Sha256: 8f604949c748fcd11a20f65c93652321068504e60e82dc73430fa5b904219f54

Contents?: true

Size: 506 Bytes

Versions: 8

Compression:

Stored size: 506 Bytes

Contents

require 'puppet-strings/markdown/base'

module PuppetStrings::Markdown
  class ResourceType < Base
    def initialize(registry)
      @template = 'resource_type.erb'
      super(registry, 'type')
    end

    def render
      super(@template)
    end

    def properties
      @registry[:properties]
    end

    def parameters
      @registry[:parameters]
    end

    def regex_in_data_type?(data_type)
      m = data_type.match(/\w+\[\/.*\/\]/)
      m unless m.nil? || m.length.zero?
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
puppet-strings-2.4.0 lib/puppet-strings/markdown/resource_type.rb
puppet-strings-2.3.1 lib/puppet-strings/markdown/resource_type.rb
puppet-strings-2.3.0 lib/puppet-strings/markdown/resource_type.rb
puppet-strings-2.2.0 lib/puppet-strings/markdown/resource_type.rb
puppet-strings-2.1.0 lib/puppet-strings/markdown/resource_type.rb
puppet-strings-2.0.0 lib/puppet-strings/markdown/resource_type.rb
puppet-strings-1.2.1 lib/puppet-strings/markdown/resource_type.rb
puppet-strings-1.2.0 lib/puppet-strings/markdown/resource_type.rb