vrowser 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/vrowser +7 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
data/bin/vrowser
CHANGED
@@ -4,6 +4,7 @@
|
|
4
4
|
require 'vrowser'
|
5
5
|
require 'optparse'
|
6
6
|
require 'vrowser/http_daemon'
|
7
|
+
require 'fileutils'
|
7
8
|
|
8
9
|
options = {}
|
9
10
|
parser = OptionParser.new{ |opts|
|
@@ -19,6 +20,12 @@ parser = OptionParser.new{ |opts|
|
|
19
20
|
}
|
20
21
|
parser.parse!
|
21
22
|
|
23
|
+
if ARGV.first == "sample"
|
24
|
+
p sample_config = File.expand_path(File.join(File.dirname(__FILE__), "../examples/config.yml"))
|
25
|
+
FileUtils.cp(sample_config, "./config.yml", :verbose => true)
|
26
|
+
exit(0)
|
27
|
+
end
|
28
|
+
|
22
29
|
if options[:config_path].nil?
|
23
30
|
parser.help.display
|
24
31
|
exit(1)
|