Class: CloudRunner::DigitalOcean::Cli::Over

Inherits:
Base
  • Object
show all
Defined in:
lib/cloud_runner/digital_ocean/cli/over.rb

Instance Attribute Summary

Attributes inherited from Base

#options

Instance Method Summary collapse

Methods inherited from Base

#run_script

Constructor Details

#initialize(opts = {}) ⇒ Over

Returns a new instance of Over.



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/cloud_runner/digital_ocean/cli/over.rb', line 6

def initialize(opts={})
  super

  raise "Droplet id must be specified" \
    unless @droplet_id = options[:droplet_id]

  raise "Ssh key must be specified" \
    unless @ssh_key_path = options[:ssh_key]

  @ssh_key_path = File.realpath(@ssh_key_path)
end