Method: Heroku::Command::Certs#update

Defined in:
lib/heroku/command/certs.rb

#updateObject

certs:update CRT KEY

Update an SSL Endpoint on an app.

--bypass  # bypass the trust chain completion step


88
89
90
91
92
93
94
95
96
97
# File 'lib/heroku/command/certs.rb', line 88

def update
  crt, key = read_crt_and_key
  cname    = options[:endpoint] || current_endpoint
  endpoint = action("Updating SSL Endpoint #{cname} for #{app}") { heroku.ssl_endpoint_update(app, cname, crt, key) }
  display_warnings(endpoint)
  display "Updated certificate details:"
  display_certificate_info(endpoint)
rescue UsageError
  fail("Usage: pogo certs:update CRT KEY\nMust specify CRT and KEY to update cert.")
end