Module: Pure::Extractor::ConfigurePuree

Included in:
Pure::Extractor::Commands::PureExtractorCommand
Defined in:
lib/pure/extractor/configure_puree.rb

Instance Method Summary collapse

Instance Method Details

#configure_puree(server, username, password) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/pure/extractor/configure_puree.rb', line 7

def configure_puree server, username, password
  
  Puree.configure do |config|
    
    config.base_url = server
    
    if !username.nil? && !password.nil? && !username.empty? && !password.empty?
      
      config.username = username
      config.password = password
      config.basic_auth = true
      
    end
    
  end
  
end