Method: Codebot::Options.with_ipc_client

Defined in:
lib/codebot/options.rb

.with_ipc_client(opts) {|IPCClient| ... } ⇒ Object

Creates a new IPCClient from the specified command-line options. Errors of type UserError are handled if they occur in the given block.

Parameters:

  • opts (Hash)

    the options to initialize the client with

Yields:



45
46
47
# File 'lib/codebot/options.rb', line 45

def self.with_ipc_client(opts)
  with_errors { yield IPCClient.new(opts[:pipe]) }
end