restpack-web 0.1.26 → 0.1.27
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/restpack-web/app.rb +1 -11
- data/lib/restpack-web/version.rb +1 -1
- data/lib/restpack-web.rb +2 -1
- metadata +1 -1
data/lib/restpack-web/app.rb
CHANGED
@@ -12,8 +12,6 @@ module RestPack
|
|
12
12
|
|
13
13
|
raise "missing configuration" unless options[:core_domain] || options[:access_key]
|
14
14
|
|
15
|
-
p "RestPack options: #{options}"
|
16
|
-
|
17
15
|
@core_cache = RestPack::Core::Client::Cache.create(options[:core_domain], options[:access_key])
|
18
16
|
end
|
19
17
|
|
@@ -21,13 +19,10 @@ module RestPack
|
|
21
19
|
env[:restpack] ||= {}
|
22
20
|
begin #TODO: GJ: cache should handle errors gracefully
|
23
21
|
host = env["SERVER_NAME"]
|
24
|
-
p "host: #{host}"
|
25
22
|
env[:restpack][:host] = host
|
26
|
-
|
23
|
+
|
27
24
|
channel = @core_cache.get_channel(host)
|
28
|
-
p "channel: #{channel}"
|
29
25
|
domain = channel.get_domain_by_host(host)
|
30
|
-
p "domain: #{domain}"
|
31
26
|
|
32
27
|
env[:restpack][:channel] = channel
|
33
28
|
env[:restpack][:application] = domain.application
|
@@ -79,10 +74,5 @@ module RestPack
|
|
79
74
|
env[:restpack][:application_domains] = domains
|
80
75
|
end
|
81
76
|
end
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
77
|
end
|
88
78
|
end
|
data/lib/restpack-web/version.rb
CHANGED
data/lib/restpack-web.rb
CHANGED