Sha256: 4fad2aa33051a2690cfe6c3bb6522b7ed9d7d0c2bbd22f089fb8911347c4dd1f
Contents?: true
Size: 440 Bytes
Versions: 26
Compression:
Stored size: 440 Bytes
Contents
module Heirloom class Lister def initialize(args) @config = args[:config] @name = args[:name] @domain = "heirloom_#{@name}" end def list(limit=10) sdb.select("select * from `#{@domain}` where built_at > '2000-01-01T00:00:00.000Z'\ order by built_at desc limit #{limit}").keys end private def sdb @sdb ||= AWS::SimpleDB.new :config => @config end end end
Version data entries
26 entries across 26 versions & 1 rubygems