module PryRemoteEm::Server::ShellCmd

Public Class Methods

new(pryem) click to toggle source
# File lib/pry-remote-em/server/shell_cmd.rb, line 4
def initialize(pryem)
  @pryem = pryem
end

Public Instance Methods

receive_data(d) click to toggle source
# File lib/pry-remote-em/server/shell_cmd.rb, line 8
def receive_data(d)
  @pryem.send_shell_cmd(d.force_encoding('utf-8'))
end
Also aliased as: receive_stderr
receive_stderr(d)
Alias for: receive_data
unbind() click to toggle source
# File lib/pry-remote-em/server/shell_cmd.rb, line 14
def unbind
  @pryem.send_shell_result(get_status.exitstatus)
  @pryem.send_last_prompt
end