Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

Commit

Permalink
deploy cancel should be deploy destroy (keep both)
Browse files Browse the repository at this point in the history
  • Loading branch information
shoenig committed Feb 15, 2016
1 parent ab977bf commit d2c03c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ func (d DeployCancel) Apply(args []string) {
request := d.client.DELETE(path)
response, e := d.client.Do(request)
Check(e == nil, "failed to cancel deploy", e)

defer response.Body.Close()
fmt.Println(d.format.Format(response.Body, d.Humanize))
}

func (d DeployCancel) Humanize(body io.Reader) string {
Expand Down
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ func main() {
}
deploy := &Category{
actions: map[string]Action{
"list": DeployList{c, f},
"cancel": DeployCancel{c, f},
"list": DeployList{c, f},
"destroy": DeployCancel{c, f},
"cancel": DeployCancel{c, f},
},
}
marathon := &Category{
Expand Down

0 comments on commit d2c03c3

Please sign in to comment.