class Pytty::Client::Cli::StderrCommand

Public Instance Methods

execute() click to toggle source
# File lib/pytty/client/cli/stderr_command.rb, line 13
def execute
  Async.run do
    response, body = Pytty::Client::Api::Stderr.run id: id
    if response.status == 200
      puts body.read
    else
      puts body.read
      exit 1
    end
  end
end