Class: OctocatalogDiff::Catalog::Noop

Inherits:
OctocatalogDiff::Catalog show all
Defined in:
lib/octocatalog-diff/catalog/noop.rb

Overview

Represents a null Puppet catalog.

Instance Attribute Summary

Attributes inherited from OctocatalogDiff::Catalog

#built, #catalog, #catalog_json, #node, #options

Instance Method Summary collapse

Methods inherited from OctocatalogDiff::Catalog

#build, #build_catalog, #builder, #compilation_dir, #compilation_dir=, #convert_file_resources, create, #environment, #error_message, #error_message=, #puppet_version, #resource, #resources, #retries, #valid?, #validate_references

Constructor Details

#initialize(options) ⇒ Noop

Returns a new instance of Noop.



11
12
13
14
15
16
17
18
# File 'lib/octocatalog-diff/catalog/noop.rb', line 11

def initialize(options)
  super

  @catalog_json = '{"resources":[]}'
  @catalog = { 'resources' => [] }
  @error_message = nil
  @node = options.fetch(:node, 'noop')
end