# File lib/rhc/commands/alias.rb, line 115 def list(app) rest_app = rest_client.find_application(options.namespace, app) items = rest_app.aliases.map do |a| a.is_a?(String) ? [a, 'no', '-'] : [a.id, a.has_private_ssl_certificate? ? 'yes' : 'no', a.has_private_ssl_certificate? ? Date.parse(a.certificate_added_at) : '-'] end if items.empty? info "No aliases associated with the application #{app}." else say table(items, :header => ["Alias", "Has Certificate?", "Certificate Added"]) end 0 end