six-updater-web 0.14.1 → 0.14.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/six-updater-web/config/six-updater-web.rb +1 -1
- data/lib/six-updater-web/init.rb +4 -2
- metadata +2 -2
data/Rakefile
CHANGED
data/lib/six-updater-web/init.rb
CHANGED
@@ -7,14 +7,16 @@ module SixUpdaterWeb
|
|
7
7
|
|
8
8
|
OPEN_BROWSER = true
|
9
9
|
|
10
|
-
|
10
|
+
argvs = ARGV.to_s
|
11
|
+
|
12
|
+
SIX_HOST = if argvs[/--bindi?n?g?=([0-9\.]*)/] || argvs[/-b ?([0-9\.]*)/]
|
11
13
|
$1
|
12
14
|
else
|
13
15
|
ARGV << "--binding=#{DEFAULT_IP}"
|
14
16
|
DEFAULT_IP
|
15
17
|
end
|
16
18
|
|
17
|
-
SIX_PORT = if
|
19
|
+
SIX_PORT = if argvs[/--port=([0-9]*)/] || argvs[/-p ?([0-9]*)/]
|
18
20
|
$1
|
19
21
|
else
|
20
22
|
ARGV << "--port=#{DEFAULT_PORT}"
|