Class: Pytty::Client::Cli::YieldCommand

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

Instance Method Summary collapse

Instance Method Details

#executeObject



14
15
16
17
18
19
20
21
# File 'lib/pytty/client/cli/yield_command.rb', line 14

def execute
  process_yield = Async.run do
    json = Pytty::Client::Api::Yield.run cmd: cmd_list, id: name, env: {}
    ::Pytty::Client::ProcessYield.from_json json
  end.wait

  puts process_yield.id
end