class TheShoveler::Job

Attributes

count[RW]
target[RW]

Public Class Methods

new(target, count) click to toggle source
# File lib/theShoveler/job.rb, line 5
def initialize(target, count)
  @target = target
  @count = count
end

Public Instance Methods

run() click to toggle source
# File lib/theShoveler/job.rb, line 10
def run
  TheShoveler::logger.info 'pushing docs'
  puts count
  @count.times do |c|
    @target.add Document.new
    puts '.'
  end
end