vrowser 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/vrowser +6 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.6
|
data/bin/vrowser
CHANGED
@@ -6,7 +6,11 @@ require 'optparse'
|
|
6
6
|
require 'vrowser/http_daemon'
|
7
7
|
require 'fileutils'
|
8
8
|
|
9
|
-
options = {
|
9
|
+
options = {
|
10
|
+
:host => 'localhost',
|
11
|
+
:port => '3000',
|
12
|
+
:document_root => File.expand_path(File.join(File.dirname(__FILE__), '../public_html'))
|
13
|
+
}
|
10
14
|
parser = OptionParser.new{ |opts|
|
11
15
|
opts.banner = "Usage: #{File.basename($0)}"
|
12
16
|
opts.on("-f", "--config-file=PATH", "specify config file"){ |v|
|
@@ -21,7 +25,7 @@ parser = OptionParser.new{ |opts|
|
|
21
25
|
parser.parse!
|
22
26
|
|
23
27
|
if ARGV.first == "sample"
|
24
|
-
|
28
|
+
sample_config = File.expand_path(File.join(File.dirname(__FILE__), "../examples/config.yml"))
|
25
29
|
FileUtils.cp(sample_config, "./config.yml", :verbose => true)
|
26
30
|
exit(0)
|
27
31
|
end
|