Class: Focus::StartBlinkServer

Inherits:
Action
  • Object
show all
Defined in:
lib/focus/actions/start_blink_server.rb

Instance Method Summary collapse

Instance Method Details

#callObject



3
4
5
6
7
8
# File 'lib/focus/actions/start_blink_server.rb', line 3

def call
  verify_blink_server_installed
  HTTParty.get(Config.blink_server)
rescue Errno::ECONNREFUSED
  start_blink_server
end