# File lib/fog/joyent/models/compute/servers.rb, line 11 def all load(self.connection.list_machines().body) end
# File lib/fog/joyent/models/compute/servers.rb, line 21 def bootstrap(new_attributes = {}) server = create(new_attributes) server.wait_for { ready? } server end
# File lib/fog/joyent/models/compute/servers.rb, line 15 def create(params = {}) data = self.connection.create_machine(params).body server = new(data) server end
# File lib/fog/joyent/models/compute/servers.rb, line 27 def get(machine_id) data = self.connection.get_machine(machine_id).body new(data) end