Sha256: 21b6707c714db148cd75431ce9641386ffcbb45f55eb16b2d16ee0d8a8fdfbb2
Contents?: true
Size: 549 Bytes
Versions: 2
Compression:
Stored size: 549 Bytes
Contents
namespace :gmail_cli do require 'gmail_cli' desc "Perform Google OAuth2 client authorization with client_id=? client_secret=?" task :authorize do |t| options = { client_id: ENV['client_id'], client_secret: ENV['client_secret'], scope: ENV['scope'], redirect_uri: ENV['redirect_uri'], application_name: ENV['application_name'], application_version: ENV['application_version'] } GmailCli::Logger.set_log_mode(t.application.options.trace) GmailCli::Oauth2Helper.authorize!(options) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gmail_cli-0.1.0 | lib/gmail_cli/tasks.rb |
gmail_cli-0.0.1 | lib/gmail_cli/tasks.rb |