Class: Janky::App
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- Janky::App
- Defined in:
- lib/janky/app.rb
Instance Method Summary collapse
- #authorize_index ⇒ Object
- #authorize_repo(repo) ⇒ Object
- #github_organization ⇒ Object
- #github_team_id ⇒ Object
Instance Method Details
#authorize_index ⇒ Object
29 30 31 32 33 |
# File 'lib/janky/app.rb', line 29 def if github_team_id github_team_authenticate!(github_team_id) end end |
#authorize_repo(repo) ⇒ Object
35 36 37 38 39 |
# File 'lib/janky/app.rb', line 35 def (repo) if team_id = (repo.github_team_id || github_team_id) github_team_authenticate!(team_id) end end |
#github_organization ⇒ Object
21 22 23 |
# File 'lib/janky/app.rb', line 21 def github_organization settings.respond_to?(:github_organization) && settings.github_organization end |
#github_team_id ⇒ Object
25 26 27 |
# File 'lib/janky/app.rb', line 25 def github_team_id settings.respond_to?(:github_team_id) && settings.github_team_id end |