Class: LoopDance::Dancer

Inherits:
Object
  • Object
show all
Extended by:
Commands
Defined in:
lib/loop_dance/dancer.rb

Instance Attribute Summary

Attributes included from Commands

#timeout

Class Method Summary collapse

Methods included from Commands

dance, every, inherited, log, pid_file, print_status, stop_me, super_attr_accessor

Class Method Details

.controllerObject

def inherited(subclass) end



17
18
19
# File 'lib/loop_dance/dancer.rb', line 17

def controller
  @controller ||= LoopDance::Controller.new self
end

.running?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/loop_dance/dancer.rb', line 29

def running?
  controller.running?
end

.startObject



25
26
27
# File 'lib/loop_dance/dancer.rb', line 25

def start
  controller.start
end

.stopObject



21
22
23
# File 'lib/loop_dance/dancer.rb', line 21

def stop
  controller.stop
end