lib/travis/cli/pubkey.rb in travis-1.2.7 vs lib/travis/cli/pubkey.rb in travis-1.2.8

- old
+ new

@@ -2,17 +2,20 @@ require 'travis/cli' module Travis module CLI class Pubkey < RepoCommand + on('-p', '--[no-]pem', 'encode in format used by pem') + def run say key, "Public key for #{color(repository.slug, :info)}:\n\n%s", :bold end private def key - repository.public_key.to_rsa.to_s + key = repository.public_key + pem? ? key.to_s : key.to_ssh end end end end