Class: Vpsb::Resources::DoDropletSshKey

Inherits:
BaseResource show all
Includes:
AskSupport, ShellSupport
Defined in:
lib/vpsb/resources/do_droplet_ssh_key.rb

Instance Method Summary collapse

Methods included from ShellSupport

#in_dir

Methods included from AskSupport

#ask, #ask_loop, #ask_to_confirm

Instance Method Details

#call(core) ⇒ Object



8
9
10
11
12
# File 'lib/vpsb/resources/do_droplet_ssh_key.rb', line 8

def call(core)
  puts "Loading list of available ssh keys"
  in_dir(core.get(:server_app_path), 'knife digital_ocean sshkey list')
  ask_loop { puts 'Which ssh key? Enter its id' }
end