Moving require so that client only gets loaded if the task requires it.
This commit is contained in:
parent
c44ca3afc1
commit
2ccab7b593
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue