Class: OctocatalogDiff::Catalog::Noop
- Inherits:
-
OctocatalogDiff::Catalog
- Object
- OctocatalogDiff::Catalog
- OctocatalogDiff::Catalog::Noop
- 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
-
#initialize(options) ⇒ Noop
constructor
A new instance of Noop.
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() super @catalog_json = '{"resources":[]}' @catalog = { 'resources' => [] } @error_message = nil @node = .fetch(:node, 'noop') end |