Class: Codescout::Runner::Key

Inherits:
Object
  • Object
show all
Defined in:
lib/codescout/runner/key.rb

Instance Method Summary collapse

Constructor Details

#initialize(public_key, private_key) ⇒ Key

Returns a new instance of Key.



3
4
5
6
# File 'lib/codescout/runner/key.rb', line 3

def initialize(public_key, private_key)
  @public_key  = public_key
  @private_key = private_key
end

Instance Method Details

#installObject



8
9
10
11
12
13
# File 'lib/codescout/runner/key.rb', line 8

def install
  return if keys_installed?

  write(private_key_path, @private_key)
  write(public_key_path, @public_key)
end