Sha256: 6490e3d76dc74b9ef8102d851f5bd286dc833961913f4a30386bb2f5c6b89fb3

Contents?: true

Size: 783 Bytes

Versions: 1

Compression:

Stored size: 783 Bytes

Contents

# frozen_string_literal: true

module PuppetLanguageServerSidecar
  module Cache
    CLASSES_SECTION = 'classes'
    FUNCTIONS_SECTION = 'functions'
    TYPES_SECTION = 'types'
    PUPPETSTRINGS_SECTION = 'puppetstrings'

    class Base
      attr_reader :cache_options

      def initialize(options = {})
        @cache_options = options
      end

      def active?
        false
      end

      def load(_absolute_path, _section)
        raise NotImplementedError
      end

      def save(_absolute_path, _section, _content_string)
        raise NotImplementedError
      end

      # WARNING - This method is only intended for testing the cache
      # and should not be used for normal operations
      def clear!
        raise NotImplementedError
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
puppet-editor-services-2.0.4 lib/puppet-languageserver-sidecar/cache/base.rb