Class: TestbotCloud::Server::Brightbox
- Inherits:
-
Object
- Object
- TestbotCloud::Server::Brightbox
- Defined in:
- lib/server/brightbox.rb
Instance Method Summary collapse
- #bootstrap!(mutex) ⇒ Object
-
#initialize(compute, opts, server) ⇒ Brightbox
constructor
A new instance of Brightbox.
Constructor Details
#initialize(compute, opts, server) ⇒ Brightbox
Returns a new instance of Brightbox.
4 5 6 |
# File 'lib/server/brightbox.rb', line 4 def initialize(compute, opts, server) @compute, @opts, @server = compute, opts, server end |
Instance Method Details
#bootstrap!(mutex) ⇒ Object
8 9 10 11 12 |
# File 'lib/server/brightbox.rb', line 8 def bootstrap!(mutex) ip = nil mutex.synchronize { ip = map_ip! } Bootstrap.new(ip.public_ip, @server.id, @opts).install end |