class Bard::Provision::AuthorizedKeys
install public keys if missing
Constants
- KEYS
Public Instance Methods
Source
# File lib/bard/provision/authorizedkeys.rb, line 4 def call print "Authorized Keys:" KEYS.each do |search_text, full_key| file = "~/.ssh/authorized_keys" provision_server.run! <<~BASH, home: true if ! grep -F -q "#{search_text}" #{file}; then echo "#{full_key}" >> #{file} fi BASH end puts " ✓" end