Module PryRemoteEm::Server
In: lib/pry-remote-em/server.rb
lib/pry-remote-em/server/shell_cmd.rb

Methods

Included Modules

Proto

Classes and Modules

Module PryRemoteEm::Server::ShellCmd

Public Class methods

The list of pry-remote-em connections for a given object, or the list of all pry-remote-em connections for this process. The peer list is used when broadcasting messages between connections.

Record the association between a given object and a given pry-remote-em connection.

Start a pry-remote-em server @param [Object] obj the object to bind pry to @param [String] ip the ip address to listen on @param [Fixnum, Symbol] port the port to listen on - if :auto the next available port will be taken @param [Hash] opts @option opts [Boolean] :tls require SSL encryption @option opts [Logger] :logger @option opts [Proc, Object] :auth require user authentication - see README @option opts [Boolean] :allow_shell_cmds

Remove the association between a given object and a given pry-remote-em connection.

Public Instance methods

Registers a block to call when authentication is attempted. @overload auth_attempt(&blk)

  @yield [user, ip] a block to call on each authentication attempt
  @yieldparam [String] user
  @yieldparam [String] ip

Registers a block to call when authentication fails. @overload auth_fail(&blk)

  @yield [user, ip] a block to call after each failed authentication attempt
  @yieldparam [String] user
  @yieldparam [String] ip

Registers a block to call when authentication succeeds. @overload auth_ok(&blk)

  @yield [user, ip] a block to call after each successful authentication attempt
  @yieldparam [String] user
  @yieldparam [String] ip

Methods that make Server compatible with Pry

tab completion request

Sends a chat message to the client.

Sends a chat message to the client.

write(val)

Alias for print

[Validate]