Class: Playit::Services::Bootstrap

Inherits:
Object
  • Object
show all
Defined in:
lib/playit/services/bootstrap.rb

Class Method Summary collapse

Class Method Details

.initObject



9
10
11
12
13
14
15
16
17
# File 'lib/playit/services/bootstrap.rb', line 9

def init
  puts '[INFO] Init bootstrap service...'
  url = "#{Playit.config.attributes["bootstrap"]}/rest/init"
  open(url) { |f|
    f.each_line {
      |line| puts line
    }
  }
end

.restartObject



24
25
26
27
# File 'lib/playit/services/bootstrap.rb', line 24

def restart
  stop
  start
end

.stopObject



19
20
21
22
# File 'lib/playit/services/bootstrap.rb', line 19

def stop
  puts '[INFO] Stop bootstrap service...'
  puts '[INFO] TODO!'
end