Included modules
Constants
RTYPE | = | 'back'.freeze |
Public instance methods
from_hash
(h)
[show source]
# File lib/rudy/backups.rb, line 19 19: def from_hash(h) 20: Rudy::Backup.from_hash h 21: end
get
(path)
Returns the most recent backup object for the given path
[show source]
# File lib/rudy/backups.rb, line 12 12: def get(path) 13: tmp = Rudy::Backup.new path 14: backups = Rudy::Backups.list :path => path 15: return nil unless backups.is_a?(Array) && !backups.empty? 16: backups.first 17: end