Module: TrelloAuthorize
- Includes:
- Trello::Authorization, TrelloConfiguration
- Included in:
- TrelloTracker
- Defined in:
- lib/trello_effort_tracker/trello_authorize.rb
Instance Method Summary collapse
Methods included from TrelloConfiguration
#authorization_params_from_config_file, #tracker_username
Instance Method Details
#authorize_on_trello(auth_params = {}) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/trello_effort_tracker/trello_authorize.rb', line 5 def (auth_params={}) %w{developer_public_key access_token_key}.each do |key| auth_params[key.to_sym] ||= ENV[key] || [key] end Trello.configure do |config| config.developer_public_key = auth_params[:developer_public_key] config.member_token = auth_params[:access_token_key] end end |