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

Version Path
solutious-rudy-0.9.0 lib/rudy/backups.rb
solutious-rudy-0.9.1 lib/rudy/backups.rb
solutious-rudy-0.9.2 lib/rudy/backups.rb
solutious-rudy-0.9.3 lib/rudy/backups.rb
solutious-rudy-0.9.4 lib/rudy/backups.rb
rudy-0.9.5.004 lib/rudy/backups.rb
rudy-0.9.5.003 lib/rudy/backups.rb
rudy-0.9.5.002 lib/rudy/backups.rb
rudy-0.9.5 lib/rudy/backups.rb
rudy-0.9.4 lib/rudy/backups.rb
rudy-0.9.3 lib/rudy/backups.rb
rudy-0.9.2 lib/rudy/backups.rb
rudy-0.9.0 lib/rudy/backups.rb
rudy-0.9.1 lib/rudy/backups.rb