Skip to content

Instantly share code, notes, and snippets.

@trev
Last active February 18, 2016 01:20
Show Gist options
  • Save trev/5406ff3273edf98f8d10 to your computer and use it in GitHub Desktop.
Save trev/5406ff3273edf98f8d10 to your computer and use it in GitHub Desktop.
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