Class: CloudRunner::DigitalOcean::Cli::Over
- Defined in:
- lib/cloud_runner/digital_ocean/cli/over.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Over
constructor
A new instance of Over.
Methods inherited from Base
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 = [:droplet_id] raise "Ssh key must be specified" \ unless @ssh_key_path = [:ssh_key] @ssh_key_path = File.realpath(@ssh_key_path) end |