Sha256: 14e89800fe39287c01ca739adc452abf61046b820d97e0a178e0a3ca0d3672c8

Contents?: true

Size: 280 Bytes

Versions: 5

Compression:

Stored size: 280 Bytes

Contents

module FireAndForget
  module Command
    class GetPid < CommandBase

      attr_reader :task_name, :pid

      def initialize(task_name)
        @task_name = task_name.to_sym
      end

      def run
        FireAndForget::Server.pids[@task_name]
      end
    end
  end
end




Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fire_and_forget-0.3.3 lib/fire_and_forget/command/get_pid.rb
fire_and_forget-0.3.2 lib/fire_and_forget/command/get_pid.rb
fire_and_forget-0.3.1 lib/fire_and_forget/command/get_pid.rb
fire_and_forget-0.3.0 lib/fire_and_forget/command/get_pid.rb
fire_and_forget-0.2.0 lib/fire_and_forget/command/get_pid.rb