Sha256: 2c925316d08ba46953ddeee5906245039887301061fcd2ffe928a8b4ba2b717c
Contents?: true
Size: 744 Bytes
Versions: 65
Compression:
Stored size: 744 Bytes
Contents
require 'fog/core/collection' require 'fog/bluebox/models/compute/server' module Fog module Compute class Bluebox class Servers < Fog::Collection model Fog::Compute::Bluebox::Server def all data = service.get_blocks.body load(data) end def bootstrap(new_attributes = {}) server = create(new_attributes) server.wait_for { ready? } server.setup(:key_data => [server.private_key]) server end def get(server_id) if server_id && server = service.get_block(server_id).body new(server) end rescue Fog::Compute::Bluebox::NotFound nil end end end end end
Version data entries
65 entries across 65 versions & 6 rubygems