Sha256: 2f5882091797534d50624e8537e0c2a5340919bf4b2e1cf697a7e79c19622437
Contents?: true
Size: 459 Bytes
Versions: 2
Compression:
Stored size: 459 Bytes
Contents
require 'rubygems' require 'sinatra' require "google_cells" require 'yaml' path = File.expand_path(File.dirname(__FILE__) + '/../tmp/service_account.yml') file = YAML.load_file(path) GoogleCells.configure do |config| config.service_account_email = file['email'] config.key_file = File.dirname(__FILE__) + file['path'] config.key_secret = file['key_secret'] end require File.expand_path(File.dirname(__FILE__) + '/sinatra/routes') App::Routes.run!
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
google-cells-0.4.0 | examples/oauth2_service_account.rb |
google-cells-0.3.0 | examples/oauth2_service_account.rb |