Class: Zonesync::Generate
- Inherits:
-
Struct
- Object
- Struct
- Zonesync::Generate
- Defined in:
- lib/zonesync.rb
Instance Attribute Summary collapse
-
#destination ⇒ Object
Returns the value of attribute destination.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
Instance Attribute Details
#destination ⇒ Object
Returns the value of attribute destination
43 44 45 |
# File 'lib/zonesync.rb', line 43 def destination @destination end |
#source ⇒ Object
Returns the value of attribute source
43 44 45 |
# File 'lib/zonesync.rb', line 43 def source @source end |
Instance Method Details
#call ⇒ Object
44 45 46 47 48 |
# File 'lib/zonesync.rb', line 44 def call source = Provider.from(self.source) destination = Provider.from(self.destination) source.write(destination.read) end |