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

This commit is contained in:
Bob Aman committed 2012-05-24 15:29:58 +03:00
1 parent c44ca3afc1
commit 2ccab7b593
1 file changed
+1 -1
+1 -1
View File
@@ -1,4 +1,3 @@
require 'google/api_client'
require 'rake'
require 'rake/clean'
@@ -18,6 +17,7 @@ the following Google APIs.
WIKI
preferred_apis = {}
require 'google/api_client'
client = Google::APIClient.new
for api in client.discovered_apis
if !preferred_apis.has_key?(api.name)