lib/hub/github_api.rb
def prompt_password host, user
        print "#{host} password for #{user} (never stored): "
        if $stdin.tty?
          password = askpass
          puts ''
          password
        else
          # in testing
          $stdin.gets.chomp
        end
      rescue Interrupt
        puts
        abort
      end
# special prompt that has hidden input
special prompt that has hidden input
special prompt that has hidden input
def prompt_password host, user
        print "#{host} password for #{user} (never stored): "
        if $stdin.tty?
          password = askpass
          puts ''
          password
        else
          $stdin.gets.chomp
        end
      rescue Interrupt
        puts
        abort
      end
def prompt_password host , user print "#{host} password for #{user} (never stored): " if $stdin . tty? password = askpass puts '' password else $stdin . gets . chomp end rescue Interrupt puts abort end
special prompt that has hidden input
special prompt that has hidden input
# in testing
host
user