Sha256: 05cdd203ee395213d16e9f05c80f394701cf3e6d7e809c043c36692101b22bfa

Contents?: true

Size: 354 Bytes

Versions: 3

Compression:

Stored size: 354 Bytes

Contents

module Heirloom

  class ArtifactLister

    def initialize(args)
      @config = args[:config]
    end

    def list(args)
      domain = args[:name]
      sdb.select("select * from #{domain}").keys.reverse
    end

    def names
      sdb.domains
    end

    private

    def sdb
      @sdb ||= AWS::SimpleDB.new :config => @config
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
heirloom-0.1.3 lib/heirloom/artifact/artifact_lister.rb
heirloom-0.1.2 lib/heirloom/artifact/artifact_lister.rb
heirloom-0.1.1 lib/heirloom/artifact/artifact_lister.rb