Class: Zonesync::Filesystem

Inherits:
Provider
  • Object
show all
Defined in:
lib/zonesync/provider.rb

Instance Attribute Summary

Attributes inherited from Provider

#credentials

Instance Method Summary collapse

Methods inherited from Provider

#add, #change, #diffable_records, from, #remove

Instance Method Details

#readObject



63
64
65
# File 'lib/zonesync/provider.rb', line 63

def read
  File.read(credentials[:path])
end

#write(string) ⇒ Object



67
68
69
# File 'lib/zonesync/provider.rb', line 67

def write string
  File.write(credentials[:path], string)
end