2014-06-16 15:53:37 -04:00
|
|
|
package vagrantcloud
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
)
|
|
|
|
|
|
|
|
const BuilderId = "pearkes.post-processor.vagrant-cloud"
|
|
|
|
|
|
|
|
type Artifact struct {
|
2014-06-25 12:49:44 -04:00
|
|
|
Tag string
|
2014-06-16 15:53:37 -04:00
|
|
|
Provider string
|
|
|
|
}
|
|
|
|
|
2014-06-25 12:49:44 -04:00
|
|
|
func NewArtifact(provider, tag string) *Artifact {
|
2014-06-16 15:53:37 -04:00
|
|
|
return &Artifact{
|
2014-06-25 12:49:44 -04:00
|
|
|
Tag: tag,
|
2014-06-16 15:53:37 -04:00
|
|
|
Provider: provider,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*Artifact) BuilderId() string {
|
|
|
|
return BuilderId
|
|
|
|
}
|
|
|
|
|
|
|
|
func (a *Artifact) Files() []string {
|
2014-06-25 12:49:44 -04:00
|
|
|
return nil
|
2014-06-16 15:53:37 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
func (a *Artifact) Id() string {
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (a *Artifact) String() string {
|
2014-06-25 12:49:44 -04:00
|
|
|
return fmt.Sprintf("'%s': %s", a.Provider, a.Tag)
|
2014-06-16 15:53:37 -04:00
|
|
|
}
|
|
|
|
|
2014-01-19 13:32:44 -05:00
|
|
|
func (*Artifact) State(name string) interface{} {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2014-06-16 15:53:37 -04:00
|
|
|
func (a *Artifact) Destroy() error {
|
2014-06-25 12:49:44 -04:00
|
|
|
return nil
|
2014-06-16 15:53:37 -04:00
|
|
|
}
|