torquebox/torquebox-console — pull request #1 by aeberlin (2012-12-14 01:34:26+00:00)
Title: Added functionality to connect to remote torquebox instance.

# Description

Since I occasionally need to pry into our remote staging cluster, I added functionality to connect to remote torquebox instance. The deployment still needs to be pushed manually, but assuming it is already deployed remotely, you can now connect to it via tbconsole.

See below or the individual commits for more information.

Cheers

# Changes

## lib/torquebox/console/client.rb:

1. Changed `initialize` and `self.connect` to accept a host hash object.
2. Removed non-static parameters (hosts) from the global constants, renamed to be more descriptive of their functions.
3. Added `build_globals` protected method to build STOMP parameters from supplied host and the defaults.

## bin/tbconsole:

Added options[:hostname] and options[:port] to the connect definition.