Class: Pytty::Client::Cli::PortCommand

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

Instance Method Summary collapse

Instance Method Details

#executeObject



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

def execute
  Async.run do
    from,to = ports.split(":")
    Pytty::Client::Api::Port.run id: id, from: from, to: to
  end
end