Class: Pandemonium::Boss

Inherits:
Struct
  • Object
show all
Defined in:
lib/pandemonium/boss.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#channelObject

Returns the value of attribute channel

Returns:

  • (Object)

    the current value of 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

Returns:

  • (Boolean)


12
13
14
# File 'lib/pandemonium/boss.rb', line 12

def running?
  !!@working_on && @working_on.running?
end