Moving require so that client only gets loaded if the task requires it.

This commit is contained in:
Bob Aman 2012-05-24 15:29:58 +03:00
parent c44ca3afc1
commit 2ccab7b593
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,3 @@
require 'google/api_client'
require 'rake' require 'rake'
require 'rake/clean' require 'rake/clean'
@ -18,6 +17,7 @@ the following Google APIs.
WIKI WIKI
preferred_apis = {} preferred_apis = {}
require 'google/api_client'
client = Google::APIClient.new client = Google::APIClient.new
for api in client.discovered_apis for api in client.discovered_apis
if !preferred_apis.has_key?(api.name) if !preferred_apis.has_key?(api.name)