kirk 0.1.5-java → 0.1.6-java
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/kirk/applications/config.rb +23 -1
- data/lib/kirk/builder.rb +4 -0
- data/lib/kirk/native.jar +0 -0
- data/lib/kirk/version.rb +1 -1
- metadata +1 -1
@@ -3,7 +3,8 @@ module Kirk
|
|
3
3
|
class Config
|
4
4
|
include Native::ApplicationConfig
|
5
5
|
|
6
|
-
attr_accessor :
|
6
|
+
attr_accessor :env,
|
7
|
+
:hosts,
|
7
8
|
:listen,
|
8
9
|
:watch,
|
9
10
|
:rackup,
|
@@ -11,6 +12,7 @@ module Kirk
|
|
11
12
|
:bootstrap_path
|
12
13
|
|
13
14
|
def initialize
|
15
|
+
@env = {}
|
14
16
|
@hosts = []
|
15
17
|
@listen = listen
|
16
18
|
end
|
@@ -23,6 +25,26 @@ module Kirk
|
|
23
25
|
alias getApplicationPath application_path
|
24
26
|
alias getRackupPath rackup
|
25
27
|
alias getBootstrapPath bootstrap_path
|
28
|
+
|
29
|
+
def getEnvironment
|
30
|
+
map = java.util.HashMap.new
|
31
|
+
env = ENV.dup
|
32
|
+
|
33
|
+
self.env.each do |key, val|
|
34
|
+
env[key.to_s] = val
|
35
|
+
end
|
36
|
+
|
37
|
+
env.each do |key, val|
|
38
|
+
next unless val
|
39
|
+
|
40
|
+
key = key.to_java_string
|
41
|
+
val = val.to_s.to_java_string
|
42
|
+
|
43
|
+
map.put(key, val)
|
44
|
+
end
|
45
|
+
|
46
|
+
map
|
47
|
+
end
|
26
48
|
end
|
27
49
|
end
|
28
50
|
end
|
data/lib/kirk/builder.rb
CHANGED
data/lib/kirk/native.jar
CHANGED
Binary file
|
data/lib/kirk/version.rb
CHANGED