Method: Atom::Tools#setup_http

Defined in:
lib/atom/tools.rb

#setup_http(http, options) ⇒ Object



152
153
154
155
156
157
158
159
160
161
162
# File 'lib/atom/tools.rb', line 152

def setup_http http, options
  if options[:user]
    http.user = options[:user]

    unless options[:pass]
      options[:pass] = obtain_password
    end

    http.pass = options[:pass]
  end
end