From a26b1ad26b18e9ce2761ec944ef9985ae41fc38e Mon Sep 17 00:00:00 2001 From: Paulo Henrique Lopes Ribeiro Date: Fri, 10 Apr 2015 09:40:48 -0300 Subject: [PATCH] Move more requires to autoload --- lib/fog/aws.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/fog/aws.rb b/lib/fog/aws.rb index ab75faf98..65786091b 100644 --- a/lib/fog/aws.rb +++ b/lib/fog/aws.rb @@ -3,9 +3,6 @@ require 'fog/xml' require 'fog/json' require File.expand_path('../aws/version', __FILE__) -require File.expand_path('../aws/credential_fetcher', __FILE__) -require File.expand_path('../aws/region_methods', __FILE__) -require File.expand_path('../aws/signaturev4', __FILE__) module Fog module CDN @@ -27,8 +24,11 @@ module Fog module AWS extend Fog::Provider - autoload :Mock, File.expand_path('../aws/mock', __FILE__) + autoload :CredentialFetcher, File.expand_path('../aws/credential_fetcher', __FILE__) autoload :Errors, File.expand_path('../aws/errors', __FILE__) + autoload :Mock, File.expand_path('../aws/mock', __FILE__) + autoload :RegionMethods, File.expand_path('../aws/region_methods', __FILE__) + autoload :SignatureV4, File.expand_path('../aws/signaturev4', __FILE__) # Services autoload :AutoScaling, File.expand_path('../aws/auto_scaling', __FILE__)