class CuttingEdge::App

Private Instance Methods

not_found() click to toggle source
# File lib/cutting_edge/app.rb, line 139
def not_found
  halt 404, '404 Not Found'
end
repo_defined?(source, org, name) click to toggle source
# File lib/cutting_edge/app.rb, line 151
def repo_defined?(source, org, name)
  not_found unless @repo = settings.repositories["#{source}/#{org}/#{name}"]
end
valid_token?(token) click to toggle source
# File lib/cutting_edge/app.rb, line 143
def valid_token?(token)
  defined?(::CuttingEdge::SECRET_TOKEN) && token == ::CuttingEdge::SECRET_TOKEN
end
validate_repo_token(token) click to toggle source
# File lib/cutting_edge/app.rb, line 147
def validate_repo_token(token)
  not_found unless token == @repo.hidden_token
end