Class: TestbotCloud::Server::AWS

Inherits:
Object
  • Object
show all
Defined in:
lib/server/aws.rb

Instance Method Summary collapse

Constructor Details

#initialize(compute, opts, server) ⇒ AWS

Returns a new instance of AWS.



6
7
8
# File 'lib/server/aws.rb', line 6

def initialize(compute, opts, server)
  @server, @opts = server, opts
end

Instance Method Details

#bootstrap!(mutex) ⇒ Object



10
11
12
13
14
15
# File 'lib/server/aws.rb', line 10

def bootstrap!(mutex)
  # We use the AWS adapter in integration tests.
  return true if ENV['INTEGRATION_TEST']

  Bootstrap.new(@server.dns_name, @server.id, @opts.merge({ :ssh_opts => "-i testbot.pem" })).install
end