Sha256: 46942a863c806eb1a53946028c6dfe20180d378e16e5c6ed2337efeeb47e79e7

Contents?: true

Size: 309 Bytes

Versions: 19

Compression:

Stored size: 309 Bytes

Contents

#!/usr/bin/env ruby
$:.unshift File.join(File.dirname(__FILE__), *%w[.. lib])

require 'gritano'

key = nil
STDIN.readlines.each do |line|
  if line =~ /^ssh-(?:dss|rsa) [A-Za-z0-9+\/]+$/
    key = line
  end
end

if key
  STDOUT.print Gritano::CLI::check_pub_key(key, File.dirname(File.dirname(ARGV[0])))
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
gritano-1.0.0 bin/gritano-pub-key
gritano-0.11.2 bin/gritano-pub-key
gritano-0.11.1 bin/gritano-pub-key
gritano-0.11.0 bin/gritano-pub-key
gritano-0.10.3 bin/gritano-pub-key
gritano-0.10.2 bin/gritano-pub-key
gritano-0.10.1 bin/gritano-pub-key
gritano-0.10.0 bin/gritano-pub-key
gritano-0.9.4 bin/gritano-pub-key
gritano-0.9.3 bin/gritano-pub-key
gritano-0.9.2 bin/gritano-pub-key
gritano-0.9.1 bin/gritano-pub-key
gritano-0.9.0 bin/gritano-pub-key
gritano-0.8.1 bin/gritano-pub-key
gritano-0.8.0 bin/gritano-pub-key
gritano-0.7.2 bin/gritano-pub-key
gritano-0.7.1 bin/gritano-pub-key
gritano-0.7.0 bin/gritano-pub-key
gritano-0.6.0 bin/gritano-pub-key