Sha256: d8a50959527135ad5911316ca5f2dc5e03af00c338db323e414708551f9da3c8

Contents?: true

Size: 431 Bytes

Versions: 4

Compression:

Stored size: 431 Bytes

Contents

require 'json'

module OctocatalogDiff
  class Catalog
    # Represents a null Puppet catalog.
    class Noop
      attr_accessor :node
      attr_reader :error_message, :catalog, :catalog_json

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
octocatalog-diff-0.5.6 lib/octocatalog-diff/catalog/noop.rb
octocatalog-diff-0.5.4 lib/octocatalog-diff/catalog/noop.rb
octocatalog-diff-0.5.3 lib/octocatalog-diff/catalog/noop.rb
octocatalog-diff-0.5.1 lib/octocatalog-diff/catalog/noop.rb