Sha256: 663a5cde2f4bff13777462a04b84427e1fe7f9fb58f72098a4bff58f76fd6450

Contents?: true

Size: 887 Bytes

Versions: 35

Compression:

Stored size: 887 Bytes

Contents

#
# PerfectQueue
#
# Copyright (C) 2012-2013 Sadayuki Furuhashi
#
#    Licensed under the Apache License, Version 2.0 (the "License");
#    you may not use this file except in compliance with the License.
#    You may obtain a copy of the License at
#
#        http://www.apache.org/licenses/LICENSE-2.0
#
#    Unless required by applicable law or agreed to in writing, software
#    distributed under the License is distributed on an "AS IS" BASIS,
#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#    See the License for the specific language governing permissions and
#    limitations under the License.
#

module PerfectQueue
  class Runner
    def initialize(task)
      @task = task
    end

    attr_accessor :task

    def queue
      Queue.new(task.client)
    end

    #def run
    #end

    def kill(reason)
      # do nothing
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
perfectqueue-0.8.54 lib/perfectqueue/runner.rb
perfectqueue-0.10.1 lib/perfectqueue/runner.rb
perfectqueue-0.8.53 lib/perfectqueue/runner.rb
perfectqueue-0.8.52 lib/perfectqueue/runner.rb
perfectqueue-0.10.0 lib/perfectqueue/runner.rb
perfectqueue-0.8.51 lib/perfectqueue/runner.rb
perfectqueue-0.8.50 lib/perfectqueue/runner.rb
perfectqueue-0.9.2 lib/perfectqueue/runner.rb
perfectqueue-0.9.1 lib/perfectqueue/runner.rb
perfectqueue-0.9.0 lib/perfectqueue/runner.rb
perfectqueue-0.8.49 lib/perfectqueue/runner.rb
perfectqueue-0.8.48 lib/perfectqueue/runner.rb
perfectqueue-0.8.44.1 lib/perfectqueue/runner.rb
perfectqueue-0.8.47 lib/perfectqueue/runner.rb
perfectqueue-0.8.46 lib/perfectqueue/runner.rb
perfectqueue-0.8.45 lib/perfectqueue/runner.rb
perfectqueue-0.8.44 lib/perfectqueue/runner.rb
perfectqueue-0.8.43 lib/perfectqueue/runner.rb
perfectqueue-0.8.42 lib/perfectqueue/runner.rb
perfectqueue-0.8.41 lib/perfectqueue/runner.rb