Method: Bluth::Worker#run!

Defined in:
lib/bluth/worker.rb

#run!Object



192
193
194
195
196
197
198
199
200
201
202
203
204
# File 'lib/bluth/worker.rb', line 192

def run!
  begin
    Bluth.connect
    self.class.runblock :onstart
    carefully do
      find_gob
    end
  rescue Interrupt => ex
    puts $/, "Exiting..."
    self.class.runblock :onexit
    destroy!
  end
end