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

Version Path
heirloom-0.12.3 lib/heirloom/archive/lister.rb
heirloom-0.12.2 lib/heirloom/archive/lister.rb
heirloom-0.12.1 lib/heirloom/archive/lister.rb
heirloom-0.12.0 lib/heirloom/archive/lister.rb
heirloom-0.11.2 lib/heirloom/archive/lister.rb
heirloom-0.11.1 lib/heirloom/archive/lister.rb
heirloom-0.11.0 lib/heirloom/archive/lister.rb
heirloom-0.11.0.beta.2 lib/heirloom/archive/lister.rb
heirloom-0.11.0.beta.1 lib/heirloom/archive/lister.rb
heirloom-0.10.1 lib/heirloom/archive/lister.rb
heirloom-0.10.0 lib/heirloom/archive/lister.rb
heirloom-0.9.0 lib/heirloom/archive/lister.rb
heirloom-0.8.3 lib/heirloom/archive/lister.rb
heirloom-0.8.2 lib/heirloom/archive/lister.rb
heirloom-0.8.1 lib/heirloom/archive/lister.rb
heirloom-0.8.0 lib/heirloom/archive/lister.rb
heirloom-0.7.4 lib/heirloom/archive/lister.rb
heirloom-0.7.3 lib/heirloom/archive/lister.rb
heirloom-0.7.3rc2 lib/heirloom/archive/lister.rb
heirloom-0.7.3rc1 lib/heirloom/archive/lister.rb