Sha256: 83ce095b264d760926632a1a6c54fb2fb7e80d27bdb408d04ca3ffa0fef0c577
Contents?: true
Size: 511 Bytes
Versions: 14
Compression:
Stored size: 511 Bytes
Contents
module Rudy module Backups RTYPE = 'back'.freeze extend self extend Rudy::Metadata::ClassMethods include Rudy::Huxtable extend Rudy::Huxtable # Returns the most recent backup object for the given path 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 def from_hash(h) Rudy::Backup.from_hash h end end end
Version data entries
14 entries across 14 versions & 2 rubygems