Skip to content

Commit

Permalink
Merge pull request #821 from theodi/bugfix-google-drive-envs
Browse files Browse the repository at this point in the history
Lazy-load google drive stuff
  • Loading branch information
Floppy committed Jul 24, 2014
2 parents 0d230fb + ec93624 commit c1d41d6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/extra/upload_usage_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

module UploadUsageData

@@session = GoogleDrive.login(ENV['GAPPS_USER_EMAIL'], ENV['GAPPS_PASSWORD'])

def self.perform
[
"published",
Expand Down Expand Up @@ -47,7 +45,7 @@ def self.upload_csv(csv, title)
end

def self.session
@@session
@@session ||= GoogleDrive.login(ENV['GAPPS_USER_EMAIL'], ENV['GAPPS_PASSWORD'])
end

end

0 comments on commit c1d41d6

Please sign in to comment.