Daniel Hobe wrote:> I think it would be useful to query a session as to what host you are
connected to:
>
> --- ssh.rb 27 Jul 2004 19:19:52 -0000 1.11
> +++ ssh.rb 27 Jul 2004 22:29:33 -0000
> @@ -121,6 +121,9 @@
> # Reference to the underlying transport object
> attr_reader :transport
>
> + # what host are we connected to?
> + attr_reader :host
> +
> # Creates a new, disconnected session object.
> def initialize( host, port=22 )
> @host = host
>
> Any reason not to?
>
Great suggestion. No reason at all not to have it.
I''ll add it ASAP.
- Jamis
--
Jamis Buck
jgb3@email.byu.edu
http://www.jamisbuck.org/jamis
"I use octal until I get to 8, and then I switch to decimal."