Class: Gemgate::Web

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/gemgate/web.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.repositoryObject

Returns the value of attribute repository.



7
8
9
# File 'lib/gemgate/web.rb', line 7

def repository
  @repository
end

Class Method Details

.authObject



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