lib/worker_army/base.rb in worker-army-0.6.1 vs lib/worker_army/base.rb in worker-army-0.6.2
- old
+ new
@@ -21,9 +21,18 @@
config['endpoint'] = ENV['worker_army_endpoint']
end
if ENV['worker_army_store_job_data']
config['store_job_data'] = (ENV['worker_army_store_job_data'] == 'true')
end
+ if ENV['worker_army_use_basic_auth']
+ config['use_basic_auth'] = (ENV['worker_army_use_basic_auth'] == 'true')
+ end
+ if ENV['worker_army_basic_auth_username']
+ config['basic_auth_username'] = ENV['worker_army_basic_auth_username']
+ end
+ if ENV['worker_army_basic_auth_password']
+ config['basic_auth_password'] = ENV['worker_army_basic_auth_password']
+ end
else
begin
# puts "Using config in your home directory"
config = YAML.load(File.read("#{ENV['HOME']}/.worker_army.yml"))
rescue Errno::ENOENT