Method: PuppetPdf::PdfCreator#initialize

Defined in:
lib/puppet_pdf/pdf_creator.rb

#initialize(task, source, options = {}) ⇒ PdfCreator

Returns a new instance of PdfCreator.



8
9
10
11
12
13
14
# File 'lib/puppet_pdf/pdf_creator.rb', line 8

def initialize(task, source, options = {})
  validate_yarn_installation

  @task = task
  @source = source
  @output_path = options.fetch(:output_path, default_output_path)
end