Moving require so that client only gets loaded if the task requires it.
authorBob Aman <bobaman@google.com>
Thu, 24 May 2012 12:29:58 +0000 (15:29 +0300)
committerBob Aman <bobaman@google.com>
Thu, 24 May 2012 12:29:58 +0000 (15:29 +0300)
tasks/wiki.rake

index 4e7f2aca8fc2fffaf277f4a9bbfd0ea6cac795cd..12bfe4bf06e546cae7d63023fd0d70286b5becba 100644 (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)