bootstrap_server.rb

Path: lib/fog/rackspace/examples/compute_v2/bootstrap_server.rb
Last Update: Sat Feb 23 07:17:56 +0000 2019

This example demonstrates creating a server with the Rackpace Open Cloud

Required files

rubygems   fog   base64   sshkey  

Methods

Public Instance methods

Generates a ssh key using the SSHKey library. The private key is avaialble via the ’.private_key’ and the public key is avaialble via ’.ssh_public_key‘

Use api key defined in ~/.fog file, if absent prompt for api key For more details on ~/.fog refer to fog.io/about/getting_started.html

Use username defined in ~/.fog file, if absent prompt for username. For more details on ~/.fog refer to fog.io/about/getting_started.html

[Validate]