Sha256: 41dae39e61e919a86ce21c18d9de33dd354d4dbecb24863a48029ecc6e923eeb
Contents?: true
Size: 630 Bytes
Versions: 3
Compression:
Stored size: 630 Bytes
Contents
# frozen_string_literal: true require 'async' require 'async/http' require 'async/http/internet' require 'json' module Pytty module Client module Cli class SignalCommand < Clamp::Command parameter "SIGNAL", "signal" parameter "ID ...", "id" 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 end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pytty-0.5.0 | lib/pytty/client/cli/signal_command.rb |
pytty-0.4.1 | lib/pytty/client/cli/signal_command.rb |
pytty-0.4.0 | lib/pytty/client/cli/signal_command.rb |