Commit e528cd7c authored by Jack Pearkes's avatar Jack Pearkes

post-processor/vagrant-cloud: fix artifact

parent 46535e3a
...@@ -2,19 +2,18 @@ package vagrantcloud ...@@ -2,19 +2,18 @@ package vagrantcloud
import ( import (
"fmt" "fmt"
"os"
) )
const BuilderId = "pearkes.post-processor.vagrant-cloud" const BuilderId = "pearkes.post-processor.vagrant-cloud"
type Artifact struct { type Artifact struct {
Path string Tag string
Provider string Provider string
} }
func NewArtifact(provider, path string) *Artifact { func NewArtifact(provider, tag string) *Artifact {
return &Artifact{ return &Artifact{
Path: path, Tag: tag,
Provider: provider, Provider: provider,
} }
} }
...@@ -24,7 +23,7 @@ func (*Artifact) BuilderId() string { ...@@ -24,7 +23,7 @@ func (*Artifact) BuilderId() string {
} }
func (a *Artifact) Files() []string { func (a *Artifact) Files() []string {
return []string{a.Path} return nil
} }
func (a *Artifact) Id() string { func (a *Artifact) Id() string {
...@@ -32,9 +31,9 @@ func (a *Artifact) Id() string { ...@@ -32,9 +31,9 @@ func (a *Artifact) Id() string {
} }
func (a *Artifact) String() 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 { func (a *Artifact) Destroy() error {
return os.Remove(a.Path) return nil
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment