Files
opentf/vendor/github.com/arukasio/cli/stop.go
Kazumichi Yamamoto 9176bd4861 New provider arukas (#10862)
* Add a Arukas provider

* Add dependencies for the Arukas provider

* Add documents for the Arukas
2017-01-09 17:14:33 +00:00

18 lines
343 B
Go

package arukas
import (
"log"
)
func stopContainer(stopContainerID string) {
client := NewClientWithOsExitOnErr()
if err := client.Delete("/containers/" + stopContainerID + "/power"); err != nil {
client.Println(nil, "Failed to stop the container")
log.Println(err)
ExitCode = 1
} else {
client.Println(nil, "Stopping...")
}
}