Last active
February 18, 2016 01:20
-
-
Save trev/5406ff3273edf98f8d10 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Server | |
class << self | |
delegate :dl_private_key!, to: Figaro.env | |
SSH_KEY = { | |
key_data: [ dl_private_key! ], | |
keys: [], # Required or Net:SSH will search for machine keys | |
keys_only: true, | |
} | |
def call | |
authenticate(SSH_KEY) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment