diff options
author | Andre Arko <andre@arko.net> | 2015-03-28 17:07:06 +0000 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2015-03-28 17:11:18 +0000 |
commit | 8c1503d9c81c0ca5cbd6bb3061e7988ff38cb544 (patch) | |
tree | 5d1b4f29b11590fe3067e6454086fbcd82805a1e | |
parent | 07c5d0abbb4b0bb3f6fba4c672093efbb3bcbbd0 (diff) | |
download | bundler-8c1503d9c81c0ca5cbd6bb3061e7988ff38cb544.tar.gz |
use class accessor to set class attrs
-rw-r--r-- | lib/bundler/fetcher.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bundler/fetcher.rb b/lib/bundler/fetcher.rb index 44495f19..b29e8dfb 100644 --- a/lib/bundler/fetcher.rb +++ b/lib/bundler/fetcher.rb @@ -56,12 +56,12 @@ module Bundler class << self attr_accessor :disable_endpoint, :api_timeout, :redirect_limit, :max_retries - - Fetcher.redirect_limit = 5 # How many redirects to allow in one request - Fetcher.api_timeout = 10 # How long to wait for each API call - Fetcher.max_retries = 3 # How many retries for the API call end + self.redirect_limit = 5 # How many redirects to allow in one request + self.api_timeout = 10 # How long to wait for each API call + self.max_retries = 3 # How many retries for the API call + def initialize(remote) @remote = remote |