Sha256: d7b0f39827a2ade558eda97a4dfd15963366ba4ff7438fb9c0e797a257401d5a
Contents?: true
Size: 405 Bytes
Versions: 3
Compression:
Stored size: 405 Bytes
Contents
require 'imgur' # We need HOST to be available require 'imgur/tasks/rake' namespace :imgur do desc 'Obtain your Imgur tokens' task :authorize do if ENV['CLIENT_ID'].nil? or ENV['CLIENT_SECRET'].nil? puts "USAGE: `rake imgur:authorize CLIENT_ID=your_client_id CLIENT_SECRET=your_client_secret`" exit end Imgur::Rake.authorize(ENV['CLIENT_ID'], ENV['CLIENT_SECRET']) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
imgurapi-2.0.2 | lib/imgur/tasks/tasks.rake |
imgurapi-2.0.1 | lib/imgur/tasks/tasks.rake |
imgurapi-2.0.0 | lib/imgur/tasks/tasks.rake |