~ubuntu-branches/ubuntu/quantal/ruby1.9.1/quantal

« back to all changes in this revision

Viewing changes to lib/net/telnet.rb

  • Committer: Bazaar Package Importer
  • Author(s): Lucas Nussbaum
  • Date: 2011-09-24 19:16:17 UTC
  • mfrom: (1.1.8 upstream) (13.1.7 experimental)
  • Revision ID: james.westby@ubuntu.com-20110924191617-o1qz4rcmqjot8zuy
Tags: 1.9.3~rc1-1
* New upstream release: 1.9.3 RC1.
  + Includes load.c fixes. Closes: #639959.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
163
163
    CR   = "\015"
164
164
    LF   = "\012"
165
165
    EOL  = CR + LF
166
 
    REVISION = '$Id: telnet.rb 30128 2010-12-08 08:08:59Z yugui $'
 
166
    REVISION = '$Id: telnet.rb 31641 2011-05-19 00:07:25Z nobu $'
167
167
    # :startdoc:
168
168
 
169
169
    #
726
726
      if options.kind_of?(Hash)
727
727
        username = options["Name"]
728
728
        password = options["Password"]
729
 
        login_prompt = options["LoginPrompt"] if options["LoginPrompt"]
730
 
        password_prompt = options["PasswordPrompt"] if options["PasswordPrompt"]
 
729
        login_prompt = options["LoginPrompt"] if options["LoginPrompt"]
 
730
        password_prompt = options["PasswordPrompt"] if options["PasswordPrompt"]
731
731
      else
732
732
        username = options
733
733
      end
754
754
      line
755
755
    end
756
756
 
 
757
    # Closes the connection
757
758
    def close
758
759
      @sock.close
759
760
    end