Class: Playit::Services::Bootstrap
- Inherits:
-
Object
- Object
- Playit::Services::Bootstrap
- Defined in:
- lib/playit/services/bootstrap.rb
Class Method Summary collapse
Class Method Details
.init ⇒ Object
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 |
.restart ⇒ Object
24 25 26 27 |
# File 'lib/playit/services/bootstrap.rb', line 24 def restart stop start end |
.stop ⇒ Object
19 20 21 22 |
# File 'lib/playit/services/bootstrap.rb', line 19 def stop puts '[INFO] Stop bootstrap service...' puts '[INFO] TODO!' end |