Class: Pytty::Client::Cli::SignalCommand

Inherits:
Clamp::Command
  • Object
show all
Defined in:
lib/pytty/client/cli/signal_command.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/pytty/client/cli/signal_command.rb', line 14

def execute
  Async.run do
    for id in id_list do
      response, body = Pytty::Client::Api::Signal.run id: id, signal: signal
      if response.status == 200
        puts id
      else
        puts body
      end
    end
  end
end