jaz303-repo-man 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/repo-man +11 -15
- metadata +1 -1
data/bin/repo-man
CHANGED
@@ -75,20 +75,16 @@ module RepoMan
|
|
75
75
|
end
|
76
76
|
end
|
77
77
|
|
78
|
-
if
|
78
|
+
if ARGV.length != 1
|
79
|
+
puts "Usage: svn-dav-gen path"
|
80
|
+
exit
|
81
|
+
end
|
79
82
|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
if !File.directory?(path)
|
88
|
-
puts "Error: #{path} is not a directory"
|
89
|
-
exit 1
|
90
|
-
end
|
91
|
-
|
92
|
-
puts RepoMan::ApacheConfigGenerator.new(path).to_httpd_conf
|
83
|
+
path = File.expand_path(ARGV[0])
|
84
|
+
|
85
|
+
if !File.directory?(path)
|
86
|
+
puts "Error: #{path} is not a directory"
|
87
|
+
exit 1
|
88
|
+
end
|
93
89
|
|
94
|
-
|
90
|
+
puts RepoMan::ApacheConfigGenerator.new(path).to_httpd_conf
|