Class: PuppetStrings::Markdown::PuppetTask

Inherits:
Base
  • Object
show all
Defined in:
lib/puppet-strings/markdown/puppet_task.rb

Overview

Generates Markdown for a Puppet Task.

Instance Method Summary collapse

Methods inherited from Base

#defaults, #enums, #enums_for_param, #examples, group_name, items, #link, #name, #options, #options_for_param, #params, #private?, #raises, #return_type, #see, #since, #text, #toc_info, #word_wrap, yard_types

Methods included from Helpers

#code_maybe_block

Constructor Details

#initialize(registry) ⇒ PuppetTask

Returns a new instance of PuppetTask.



11
12
13
14
15
# File 'lib/puppet-strings/markdown/puppet_task.rb', line 11

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

Instance Method Details

#input_methodObject



25
26
27
# File 'lib/puppet-strings/markdown/puppet_task.rb', line 25

def input_method
  @registry[:input_method]
end

#renderObject



17
18
19
# File 'lib/puppet-strings/markdown/puppet_task.rb', line 17

def render
  super(@template)
end

#supports_noopObject



21
22
23
# File 'lib/puppet-strings/markdown/puppet_task.rb', line 21

def supports_noop
  @registry[:supports_noop]
end