From e528cd7c8cf765321e1395fe815f93bb5c0b4388 Mon Sep 17 00:00:00 2001 From: Jack Pearkes Date: Wed, 25 Jun 2014 12:49:44 -0400 Subject: [PATCH] post-processor/vagrant-cloud: fix artifact --- post-processor/vagrant-cloud/artifact.go | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/post-processor/vagrant-cloud/artifact.go b/post-processor/vagrant-cloud/artifact.go index cebef8696..775bc2998 100644 --- a/post-processor/vagrant-cloud/artifact.go +++ b/post-processor/vagrant-cloud/artifact.go @@ -2,19 +2,18 @@ package vagrantcloud import ( "fmt" - "os" ) const BuilderId = "pearkes.post-processor.vagrant-cloud" type Artifact struct { - Path string + Tag string Provider string } -func NewArtifact(provider, path string) *Artifact { +func NewArtifact(provider, tag string) *Artifact { return &Artifact{ - Path: path, + Tag: tag, Provider: provider, } } @@ -24,7 +23,7 @@ func (*Artifact) BuilderId() string { } func (a *Artifact) Files() []string { - return []string{a.Path} + return nil } func (a *Artifact) Id() string { @@ -32,9 +31,9 @@ func (a *Artifact) Id() string { } func (a *Artifact) String() string { - return fmt.Sprintf("'%s' provider box: %s", a.Provider, a.Path) + return fmt.Sprintf("'%s': %s", a.Provider, a.Tag) } func (a *Artifact) Destroy() error { - return os.Remove(a.Path) + return nil }