class Pytty::Client::Cli::YieldCommand

Public Instance Methods

execute() click to toggle source
# File lib/pytty/client/cli/yield_command.rb, line 14
def execute
  response, json = Async.run do
    Pytty::Client::Api::Yield.run cmd: cmd_list, id: name, env: {}
  end.wait

  if response.status == 200
    process_yield = ::Pytty::Client::ProcessYield.from_json json
    puts process_yield.id
  else
    puts json
  end

end