Class: Codescout::Runner::Key
- Inherits:
-
Object
- Object
- Codescout::Runner::Key
- Defined in:
- lib/codescout/runner/key.rb
Instance Method Summary collapse
-
#initialize(public_key, private_key) ⇒ Key
constructor
A new instance of Key.
- #install ⇒ Object
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
#install ⇒ Object
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 |