Sha256: 7cb118c3a3816ecd925036e7789e02bc07fcee67fef0874e39e8977489e9f2fe

Contents?: true

Size: 122 Bytes

Versions: 4

Compression:

Stored size: 122 Bytes

Contents

require 'json'

module Serverspec::Type
  class JsonFile < File
    def content
      JSON.parse(super)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
serverspec-2.36.0 lib/serverspec/type/json_file.rb
serverspec-2.35.0 lib/serverspec/type/json_file.rb
serverspec-2.34.0 lib/serverspec/type/json_file.rb
serverspec-2.33.0 lib/serverspec/type/json_file.rb