Class: Pandemonium::Boss
- Inherits:
-
Struct
- Object
- Struct
- Pandemonium::Boss
- Defined in:
- lib/pandemonium/boss.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
Returns the value of attribute channel.
Instance Method Summary collapse
Instance Attribute Details
#channel ⇒ Object
Returns the value of attribute channel
4 5 6 |
# File 'lib/pandemonium/boss.rb', line 4 def channel @channel end |
Instance Method Details
#run_command(repo) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/pandemonium/boss.rb', line 5 def run_command(repo) puts "Starting Job" @working_on = Pandemonium::Job.new(repo, channel) @working_on.run end |
#running? ⇒ Boolean
12 13 14 |
# File 'lib/pandemonium/boss.rb', line 12 def running? !!@working_on && @working_on.running? end |