module Rudy::Backups
Constants
- RTYPE
Public Instance Methods
from_hash(h)
click to toggle source
# File lib/rudy/backups.rb, line 19 def from_hash(h) Rudy::Backup.from_hash h end
get(path)
click to toggle source
Returns the most recent backup object for the given path
# File lib/rudy/backups.rb, line 12 def get(path) tmp = Rudy::Backup.new path backups = Rudy::Backups.list :path => path return nil unless backups.is_a?(Array) && !backups.empty? backups.first end