Sha256: 925e3cc3ed989192e6c86f5218adb800280a0d2a511adae817e8d66e0a0d0790

Contents?: true

Size: 461 Bytes

Versions: 170

Compression:

Stored size: 461 Bytes

Contents

# encoding: utf-8
require 'travis/cli'

module Travis
  module CLI
    class Pubkey < RepoCommand
      description "prints out a repository's public key"
      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
          key = repository.public_key
          pem? ? key.to_s : key.to_ssh
        end
    end
  end
end

Version data entries

170 entries across 170 versions & 1 rubygems

Version Path
travis-1.6.13.travis.538.6 lib/travis/cli/pubkey.rb
travis-1.6.13 lib/travis/cli/pubkey.rb
travis-1.6.13.travis.536.6 lib/travis/cli/pubkey.rb
travis-1.6.12 lib/travis/cli/pubkey.rb
travis-1.6.13.travis.534.6 lib/travis/cli/pubkey.rb
travis-1.6.12.travis.531.6 lib/travis/cli/pubkey.rb
travis-1.6.12.travis.529.6 lib/travis/cli/pubkey.rb
travis-1.6.12.travis.528.6 lib/travis/cli/pubkey.rb
travis-1.6.12.travis.524.6 lib/travis/cli/pubkey.rb
travis-1.6.12.travis.523.6 lib/travis/cli/pubkey.rb
travis-1.6.12.travis.521.6 lib/travis/cli/pubkey.rb
travis-1.6.12.travis.520.6 lib/travis/cli/pubkey.rb
travis-1.6.12.travis.517.6 lib/travis/cli/pubkey.rb
travis-1.6.11 lib/travis/cli/pubkey.rb
travis-1.6.11.travis.516.6 lib/travis/cli/pubkey.rb
travis-1.6.11.travis.511.6 lib/travis/cli/pubkey.rb
travis-1.6.11.travis.510.6 lib/travis/cli/pubkey.rb
travis-1.6.11.travis.507.6 lib/travis/cli/pubkey.rb
travis-1.6.11.travis.503.6 lib/travis/cli/pubkey.rb
travis-1.6.10 lib/travis/cli/pubkey.rb