Class: Hyrb::Tasks::DigitalOcean::ShowSSHKeys
- Inherits:
-
Hyrb::Task
- Object
- Hyrb::Task
- Hyrb::Tasks::DigitalOcean::ShowSSHKeys
- Defined in:
- lib/hyrb/tasks/digital_ocean.rb
Instance Attribute Summary
Attributes inherited from Hyrb::Task
Instance Method Summary collapse
Methods inherited from Hyrb::Task
depends, #initialize, prompt, prompts, #run_before
Constructor Details
This class inherits a constructor from Hyrb::Task
Instance Method Details
#run(env) ⇒ Object
53 54 55 |
# File 'lib/hyrb/tasks/digital_ocean.rb', line 53 def run(env) say env.digital_ocean_ssh_keys.map { |k| {name: k.name, id: k.id, ssh_key: k.ssh_pub_key} }.to_yaml end |