Class: Conquer::Mpd::Listener
- Inherits:
-
Object
- Object
- Conquer::Mpd::Listener
- Includes:
- Celluloid, Celluloid::Notifications
- Defined in:
- lib/conquer/mpd.rb
Instance Method Summary collapse
-
#initialize(*args) ⇒ Listener
constructor
A new instance of Listener.
- #run ⇒ Object
Constructor Details
Instance Method Details
#run ⇒ Object
24 25 26 27 28 29 30 |
# File 'lib/conquer/mpd.rb', line 24 def run publish(:mpd, @mpd) loop do `mpc #{"-h #{@host}" if @host} idle #{@events.join(' ')}` publish(:mpd, @mpd) end end |