go-client icon indicating copy to clipboard operation
go-client copied to clipboard

Add deploy locking and unlocking

Open fool opened this issue 7 years ago • 0 comments

Customer Robert contributed this code to do this.


// Restore an old deploy. Sets the deploy as the active deploy for a site

func (deploy *Deploy) Unlock() (*Response, error) {

return deploy.client.Request("POST", path.Join(deploy.apiPath(), "unlock"), nil, deploy)

}

// Restore an old deploy. Sets the deploy as the active deploy for a site

func (deploy *Deploy) Lock() (*Response, error) {

return deploy.client.Request("POST", path.Join(deploy.apiPath(), "lock"), nil, deploy)

}

fool avatar Oct 23 '17 18:10 fool