Skip to content

Commit

Permalink
Added hello line for easier testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Travis Reeder committed Jan 19, 2012
1 parent d8e563f commit bcf81ce
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions test/progress_worker.rb
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
# Bump...............
class ProgressWorker < IronWorker::Base

attr_accessor :s3_key, :times, :x
attr_accessor :s3_key, :times, :x

def initialize
@times = 10
end
def initialize
@times = 10
end

def run
log 'running the test worker for moi '.upcase
log 's3_key instance_variable = ' + self.s3_key.to_s
def run
puts 'hello'
puts 'running the test worker for moi '.upcase
puts 's3_key instance_variable = ' + self.s3_key.to_s

@times.times do |i|
log 'loop ' + i.to_s
sleep 1
progress = (1.0 * i / @times * 100).round
puts 'Setting progress to ' + progress.to_s
set_progress(:percent=> progress, :msg=>"getting there...")
end
@times.times do |i|
puts 'loop ' + i.to_s
sleep 1
progress = (1.0 * i / @times * 100).round
puts 'Setting progress to ' + progress.to_s
set_progress(:percent=> progress, :msg=>"getting there...")
end
end


end
Expand Down

0 comments on commit bcf81ce

Please sign in to comment.