Class: RCS::Backdoor::Sync
- Inherits:
-
Object
- Object
- RCS::Backdoor::Sync
- Includes:
- Tracer
- Defined in:
- lib/rcs-backdoor/sync.rb
Instance Attribute Summary collapse
-
#backdoor ⇒ Object
Returns the value of attribute backdoor.
Instance Method Summary collapse
-
#initialize(protocol, backdoor) ⇒ Sync
constructor
A new instance of Sync.
-
#perform(host) ⇒ Object
for now the sync is a mere wrapper to protocol in the future it could contain other actions.
Constructor Details
Instance Attribute Details
#backdoor ⇒ Object
Returns the value of attribute backdoor.
17 18 19 |
# File 'lib/rcs-backdoor/sync.rb', line 17 def backdoor @backdoor end |
Instance Method Details
#perform(host) ⇒ Object
for now the sync is a mere wrapper to protocol in the future it could contain other actions
26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/rcs-backdoor/sync.rb', line 26 def perform(host) trace :info, "Synching with " << host # setup the parameters @protocol.sync = self # execute the sync protocol @protocol.perform host trace :info, "Sync ended" end |