Class: Zonesync::Generate

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#destinationObject

Returns the value of attribute destination

Returns:

  • (Object)

    the current value of destination



44
45
46
# File 'lib/zonesync.rb', line 44

def destination
  @destination
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



44
45
46
# File 'lib/zonesync.rb', line 44

def source
  @source
end

Instance Method Details

#callObject



45
46
47
48
49
# File 'lib/zonesync.rb', line 45

def call
  source = Provider.from(self.source)
  destination = Provider.from(self.destination)
  source.write(destination.read)
end