# frozen_string_literal: true

require 'openvox-strings/markdown/base'

module OpenvoxStrings::Markdown
  # Generates Markdown for a Puppet Task.
  class PuppetTask < Base
    group_name 'Tasks'
    yard_types [:puppet_task]

    def initialize(registry)
      @template = 'puppet_task.erb'
      @registry = registry
      super(registry, 'task')
    end

    def render
      super(@template)
    end

    def supports_noop
      @registry[:supports_noop]
    end

    def input_method
      @registry[:input_method]
    end
  end
end
