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.3.travis.373.4 lib/travis/cli/pubkey.rb
travis-1.6.2.travis.371.4 lib/travis/cli/pubkey.rb
travis-1.6.2 lib/travis/cli/pubkey.rb
travis-1.6.2.travis.370.4 lib/travis/cli/pubkey.rb
travis-1.6.2.travis.369.4 lib/travis/cli/pubkey.rb
travis-1.6.2.travis.368.4 lib/travis/cli/pubkey.rb
travis-1.6.2.travis.367.4 lib/travis/cli/pubkey.rb
travis-1.6.2.travis.366.4 lib/travis/cli/pubkey.rb
travis-1.6.2.travis.365.4 lib/travis/cli/pubkey.rb
travis-1.6.2.travis.364.4 lib/travis/cli/pubkey.rb
travis-1.6.1 lib/travis/cli/pubkey.rb
travis-1.6.1.travis.363.4 lib/travis/cli/pubkey.rb
travis-1.6.0 lib/travis/cli/pubkey.rb
travis-1.5.9.travis.362.4 lib/travis/cli/pubkey.rb
travis-1.5.9.travis.361.4 lib/travis/cli/pubkey.rb
travis-1.5.9.travis.360.4 lib/travis/cli/pubkey.rb
travis-1.5.9.travis.358.4 lib/travis/cli/pubkey.rb
travis-1.5.8 lib/travis/cli/pubkey.rb
travis-1.5.8.travis.356.4 lib/travis/cli/pubkey.rb
travis-1.5.7 lib/travis/cli/pubkey.rb