Class: Hat::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/hat/runner.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Runner

Returns a new instance of Runner.



8
9
10
# File 'lib/hat/runner.rb', line 8

def initialize(options)
  @server = ServerEngine.create(nil, Hat::Wrapper, options)
end

Class Method Details

.start!(options) ⇒ Object



4
5
6
# File 'lib/hat/runner.rb', line 4

def self.start!(options)
  self.new(options).start
end

Instance Method Details

#startObject



12
13
14
# File 'lib/hat/runner.rb', line 12

def start
  @server.run
end