lib/security.rb in forj-0.0.29 vs lib/security.rb in forj-0.0.30
- old
+ new
@@ -87,6 +87,11 @@
Connection.network.security_groups.all({:name => name})
rescue => e
Logging.error(e.message)
end
end
+
+ def upload_existing_key(key_name, key_path)
+ command = 'hpcloud keypairs:import %s %s' % [key_name, key_path]
+ Kernel.system(command)
+ end
end