1
0
Fork 0
forked from OpenNeo/impress

ignore cap files, move auth config to yaml file

This commit is contained in:
Emi Matchu 2010-11-13 10:37:57 -05:00
parent 51f3650ce2
commit d8da87cbd9
6 changed files with 6 additions and 17 deletions

1
.gitignore vendored
View file

@ -2,3 +2,4 @@
db/*.sqlite3
log/*.log
tmp/**/*
Capfile

View file

@ -5,11 +5,7 @@ module ApplicationHelper
end
def auth_server_icon_url
# TODO: if auth servers expand, don't hardcode path
URI::HTTP.build(
:host => Openneo::Auth.config.auth_server,
:path => '/favicon.png'
).to_s
"http://#{Openneo::Auth.config.auth_server}/favicon.png"
end
def body_class

2
config/.gitignore vendored
View file

@ -1 +1,3 @@
database.yml
deploy.rb
openneo_auth.yml

View file

@ -21,8 +21,3 @@ OpenneoImpressItems::Application.configure do
end
RemoteImpressHost = 'beta.impress.openneo.net'
OPENNEO_AUTH_CONFIG = {
:app => 'beta.items.impress',
:auth_server => 'openneo-id',
:secret => 'zaheh2draswAb8eneca$3an?2ADAsTuwra8h7BujUBr_w--p2-a@e?u!taQux3tr'
}

View file

@ -25,9 +25,3 @@ end
RemoteImpressHost = 'beta.impress.openneo.net'
USE_FIBER_POOL = true
OPENNEO_AUTH_CONFIG = {
:app => 'beta.items.impress',
:auth_server => 'beta.id.openneo.net',
:secret => 'zaheh2draswAb8eneca$3an?2ADAsTuwra8h7BujUBr_w--p2-a@e?u!taQux3tr'
}

View file

@ -4,9 +4,10 @@ Rails.configuration.middleware.use RailsWarden::Manager do |manager|
end
require 'openneo-auth'
require 'yaml'
Openneo::Auth.configure do |config|
OPENNEO_AUTH_CONFIG.each do |key, value|
YAML.load_file(Rails.root.join('config', 'openneo_auth.yml'))[Rails.env].each do |key, value|
config.send("#{key}=", value)
end