class Kontena::Cli::Certificate::ExportCommand
Public Instance Methods
bundle?()
click to toggle source
# File lib/kontena/cli/certificate/export_command.rb, line 16 def bundle? ![certificate?, chain?, private_key?].any? end
execute()
click to toggle source
# File lib/kontena/cli/certificate/export_command.rb, line 20 def execute certificate = client.get("certificates/#{current_grid}/#{self.subject}/export") puts certificate['certificate'] if certificate? || bundle? puts certificate['chain'] if chain? || bundle? puts certificate['private_key'] if private_key? || bundle? end