class Shelly::SshKeys
Public Class Methods
new()
click to toggle source
# File lib/shelly/ssh_keys.rb, line 5 def initialize @rsa = SshKey.new('~/.ssh/id_rsa.pub') @dsa = SshKey.new('~/.ssh/id_dsa.pub') end
Public Instance Methods
destroy()
click to toggle source
# File lib/shelly/ssh_keys.rb, line 10 def destroy [@rsa, @dsa].map(&:destroy).any? end
prefered_key()
click to toggle source
# File lib/shelly/ssh_keys.rb, line 14 def prefered_key @dsa.exists? ? @dsa : @rsa end