Class: PinchRestService

Inherits:
Object
  • Object
show all
Defined in:
features/support/pinch_rest_service.rb

Instance Method Summary (collapse)

Constructor Details

- (PinchRestService) initialize(host, port)

Returns a new instance of PinchRestService



5
6
7
8
9
10
11
# File 'features/support/pinch_rest_service.rb', line 5

def initialize(host, port)
  @host = host
  @port = port
  self.start_service @host, @port
  self.connect @host, @port
  self.messages_directory = File.join(File.dirname('.'), "..", "..", 'features', 'messages')
end

Instance Method Details

- (Object) close



17
18
19
# File 'features/support/pinch_rest_service.rb', line 17

def close
  self.stop_service
end

- (Object) store_msg(path, message)



13
14
15
# File 'features/support/pinch_rest_service.rb', line 13

def store_msg(path, message)
  store path, message
end