Class: TestbotCloud::Server::Bootstrap

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

Instance Method Summary collapse

Constructor Details

#initialize(host, id, opts) ⇒ Bootstrap

Returns a new instance of Bootstrap.



4
5
6
# File 'lib/server/shared/bootstrap.rb', line 4

def initialize(host, id, opts)
  @host, @id, @opts = host, id, opts
end

Instance Method Details

#installObject



8
9
10
# File 'lib/server/shared/bootstrap.rb', line 8

def install
  wait_for_server && upload_bootstrap_files && run('cd bootstrap; sudo sh runner.sh')
end