2017-04-16 16:04:50 -04:00
|
|
|
package main
|
|
|
|
|
2017-06-27 03:55:49 -04:00
|
|
|
const BuilderId = "jetbrains.vsphere"
|
2017-04-16 16:04:50 -04:00
|
|
|
|
|
|
|
type Artifact struct {
|
2017-06-27 03:55:49 -04:00
|
|
|
VMName string `json:"vm_name"`
|
2017-04-16 16:04:50 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
func (a *Artifact) BuilderId() string {
|
|
|
|
return BuilderId
|
|
|
|
}
|
|
|
|
|
|
|
|
func (a *Artifact) Files() []string {
|
2017-05-09 10:23:57 -04:00
|
|
|
return []string{}
|
2017-04-16 16:04:50 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
func (a *Artifact) Id() string {
|
2017-05-09 10:23:57 -04:00
|
|
|
return a.VMName
|
2017-04-16 16:04:50 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
func (a *Artifact) String() string {
|
2017-05-09 10:23:57 -04:00
|
|
|
return a.VMName
|
2017-04-16 16:04:50 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
func (a *Artifact) State(name string) interface{} {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (a *Artifact) Destroy() error {
|
|
|
|
return nil
|
|
|
|
}
|