Class: YOLOBackup::Server
- Inherits:
-
Object
- Object
- YOLOBackup::Server
- Defined in:
- lib/yolo_backup/server.rb
Constant Summary collapse
- OPTIONS =
%w{ excludes rotation ssh_host ssh_key ssh_port ssh_user storage }
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
- #cleanup_backups ⇒ Object
-
#initialize(name, options) ⇒ Server
constructor
A new instance of Server.
- #latest_backup ⇒ Object
- #to_s ⇒ Object
Constructor Details
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/yolo_backup/server.rb', line 9 def name @name end |
Instance Method Details
#cleanup_backups ⇒ Object
22 23 24 |
# File 'lib/yolo_backup/server.rb', line 22 def cleanup_backups storage.cleanup(self) end |
#latest_backup ⇒ Object
18 19 20 |
# File 'lib/yolo_backup/server.rb', line 18 def latest_backup storage.latest_backup(self) end |
#to_s ⇒ Object
26 27 28 |
# File 'lib/yolo_backup/server.rb', line 26 def to_s name end |