Class: Heroku::Command::Ssl
Overview
DEPRECATED: see ‘pogo certs` instead
manage ssl certificates for an app
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#add ⇒ Object
ssl:add PEM KEY.
-
#clear ⇒ Object
ssl:clear.
-
#index ⇒ Object
ssl.
Methods inherited from Base
#api, #app, #heroku, #initialize, namespace
Methods included from Helpers
#action, #ask, #confirm, #confirm_billing, #confirm_command, #create_git_remote, #deprecate, #display, #display_header, #display_object, #display_row, #display_table, #error, error_with_failure, error_with_failure=, extended, extended_into, #fail, #format_bytes, #format_date, #format_error, #format_with_bang, #get_terminal_environment, #git, #has_git?, #home_directory, #host_name, #hprint, #hputs, included, included_into, #json_decode, #json_encode, #launchy, #line_formatter, #longest, #output_with_bang, #quantify, #redisplay, #retry_on_exception, #run_command, #running_on_a_mac?, #running_on_windows?, #set_buffer, #shell, #spinner, #status, #string_distance, #styled_array, #styled_error, #styled_hash, #styled_header, #suggestion, #time_ago, #truncate, #with_tty
Constructor Details
This class inherits a constructor from Heroku::Command::Base
Instance Method Details
#add ⇒ Object
ssl:add PEM KEY
DEPRECATED: see ‘pogo certs:add` instead
29 30 31 32 |
# File 'lib/heroku/command/ssl.rb', line 29 def add $stderr.puts " ! `pogo ssl:add` has been deprecated. Please use the SSL Endpoint add-on and the `pogo certs` commands instead." $stderr.puts " ! SSL Endpoint documentation is available at: https://devcenter.heroku.com/articles/ssl-endpoint" end |
#clear ⇒ Object
ssl:clear
remove legacy ssl certificates from an app
38 39 40 41 |
# File 'lib/heroku/command/ssl.rb', line 38 def clear heroku.clear_ssl(app) display "Cleared certificates for #{app}" end |
#index ⇒ Object
ssl
list legacy certificates for an app
15 16 17 18 19 20 21 22 23 |
# File 'lib/heroku/command/ssl.rb', line 15 def index api.get_domains(app).body.each do |domain| if cert = domain['cert'] display "#{domain['domain']} has a SSL certificate registered to #{cert['subject']} which expires on #{format_date(cert['expires_at'])}" else display "#{domain['domain']} has no certificate" end end end |