Sha256: 603c92e4583793957f9188beec666e35acc808aaf4f48c240b5a5561671463c6

Contents?: true

Size: 343 Bytes

Versions: 18

Compression:

Stored size: 343 Bytes

Contents

# encoding: utf-8
module ProxyTester
  class Environment

    private

    attr_reader :stdin, :stderr

    public

    def initialize(stdin = $stdin, stderr = $stderr)
      @stdin  = stdin
      @stderr = stderr
    end

    def password
      stderr.printf "Please enter password: "
      @password = stdin.readline.chomp
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
proxy_tester-0.1.10 lib/proxy_tester/environment.rb
proxy_tester-0.1.8 lib/proxy_tester/environment.rb
proxy_tester-0.1.6 lib/proxy_tester/environment.rb
proxy_tester-0.1.5 lib/proxy_tester/environment.rb
proxy_tester-0.1.4 lib/proxy_tester/environment.rb
proxy_tester-0.1.3 lib/proxy_tester/environment.rb
proxy_tester-0.1.2 lib/proxy_tester/environment.rb
proxy_tester-0.1.1 lib/proxy_tester/environment.rb
proxy_tester-0.1.0 lib/proxy_tester/environment.rb
proxy_tester-0.0.9 lib/proxy_tester/environment.rb
proxy_tester-0.0.8 lib/proxy_tester/environment.rb
proxy_tester-0.0.7 lib/proxy_tester/environment.rb
proxy_tester-0.0.6 lib/proxy_tester/environment.rb
proxy_tester-0.0.5 lib/proxy_tester/environment.rb
proxy_tester-0.0.4 lib/proxy_tester/environment.rb
proxy_tester-0.0.3 lib/proxy_tester/environment.rb
proxy_tester-0.0.2 lib/proxy_tester/environment.rb
proxy_tester-0.0.1 lib/proxy_tester/environment.rb