Class: Serverspec::Type::JsonFile
- Defined in:
- lib/serverspec/type/json_file.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from File
#block_device?, #character_device?, #contain, #content_as_json, #content_as_yaml, #directory?, #executable?, #exists?, #file?, #group, #grouped_into?, #immutable?, #link_target, #linked_to?, #md5sum, #mode, #mode?, #mounted?, #mtime, #owned_by?, #owner, #pipe?, #readable?, #selinux_label, #sha256sum, #size, #socket?, #symlink?, #version?, #writable?
Methods inherited from Base
#initialize, #inspect, #to_ary, #to_s
Constructor Details
This class inherits a constructor from Serverspec::Type::Base
Instance Method Details
#content ⇒ Object
5 6 7 |
# File 'lib/serverspec/type/json_file.rb', line 5 def content MultiJson.load(super) end |