1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge pull request #1599 from rackspace/bootstrap_doc

[rackspace|compute_v2] fixing bootstrap example
This commit is contained in:
Kyle Rames 2013-02-26 15:00:49 -08:00
commit 45efc81bfe

View file

@ -22,14 +22,11 @@ module Fog
# @note This method is incompatible with Cloud Servers utlizing RackConnect. RackConnect users
# should use server personalization to install keys. Please see Server#personality for more information.
# @example
# service = Fog::Compute.new(:provider => 'rackspace',
# :version => :v2,
# service.servers.bootstrap :name => 'bootstrap-server',
# :flavor_id => service.flavors.first.id,
# :image_id => service.images.find {|img| img.name =~ /Ubuntu/}.id,
# :public_key_path => '~/.ssh/fog_rsa.pub',
# :private_key_path => '~/.ssh/fog_rsa')
#
# service.servers.bootstrap :name => 'bootstap-server',
# :flavor_id => service.flavors.first.id
# :image_id => service.servers.first.id
# :private_key_path => '~/.ssh/fog_rsa'
#
def bootstrap(new_attributes = {})
server = create(new_attributes)