Sha256: 9cf746f4a530f98034d5306fa47db77593a2badb9959af92bda44a7de5ca27dc

Contents?: true

Size: 282 Bytes

Versions: 8

Compression:

Stored size: 282 Bytes

Contents

module FireAndForget
  module Command
    class Kill < CommandBase

      def initialize(task_name, signal="TERM")
        @task_name, @signal = task_name.to_sym, signal
      end

      def run
        FireAndForget::Server.kill(@task_name, @signal)
      end
    end
  end
end



Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
fire_and_forget-0.3.3 lib/fire_and_forget/command/kill.rb
fire_and_forget-0.3.2 lib/fire_and_forget/command/kill.rb
fire_and_forget-0.3.1 lib/fire_and_forget/command/kill.rb
fire_and_forget-0.3.0 lib/fire_and_forget/command/kill.rb
fire_and_forget-0.2.0 lib/fire_and_forget/command/kill.rb
fire_and_forget-0.1.2 lib/fire_and_forget/command/kill.rb
fire_and_forget-0.1.1 lib/fire_and_forget/command/kill.rb
fire_and_forget-0.1.0 lib/fire_and_forget/command/kill.rb