Class: Gemgate::Web
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- Gemgate::Web
- Defined in:
- lib/gemgate/web.rb
Class Attribute Summary collapse
-
.repository ⇒ Object
Returns the value of attribute repository.
Class Method Summary collapse
Class Attribute Details
.repository ⇒ Object
Returns the value of attribute repository.
7 8 9 |
# File 'lib/gemgate/web.rb', line 7 def repository @repository end |
Class Method Details
.auth ⇒ Object
14 15 16 |
# File 'lib/gemgate/web.rb', line 14 def self.auth env!("GEMGATE_AUTH").split(":") end |
.env!(name) ⇒ Object
10 11 12 |
# File 'lib/gemgate/web.rb', line 10 def self.env!(name) ENV[name] or raise "ENV[#{name}] must be set" end |