lib/simple_deploy/artifact.rb in simple_deploy-0.0.3 vs lib/simple_deploy/artifact.rb in simple_deploy-0.1.0
- old
+ new
@@ -1,15 +1,18 @@
require 'heirloom'
-require 'simple_deploy/artifact/artifact_lister'
module SimpleDeploy
class Artifact
attr_accessor :metadata
def initialize(args)
@region = args[:region]
- self.metadata = Heirloom::Heirloom.info(args)
+ @config = args[:config]
+ @artifact = Heirloom::Artifact.new :config => @config.artifact_repository
+
+ self.metadata = @artifact.show :name => args[:name],
+ :id => args[:id]
end
def all_endpoints
{
's3' => s3_url,