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