Class: FireAndForget::Command::GetStatus

Inherits:
CommandBase show all
Defined in:
lib/fire_and_forget/command/get_status.rb

Instance Attribute Summary

Attributes inherited from CommandBase

#cmd, #params, #tag, #task

Instance Method Summary collapse

Methods inherited from CommandBase

#debug, #dump, #merge_params

Constructor Details

#initialize(task_name) ⇒ GetStatus

Returns a new instance of GetStatus.



5
6
7
# File 'lib/fire_and_forget/command/get_status.rb', line 5

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

Instance Method Details

#runObject



9
10
11
# File 'lib/fire_and_forget/command/get_status.rb', line 9

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