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.
Files changed (2) hide show
  1. data/bin/repo-man +11 -15
  2. metadata +1 -1
data/bin/repo-man CHANGED
@@ -75,20 +75,16 @@ module RepoMan
75
75
  end
76
76
  end
77
77
 
78
- if $0 == __FILE__
78
+ if ARGV.length != 1
79
+ puts "Usage: svn-dav-gen path"
80
+ exit
81
+ end
79
82
 
80
- if ARGV.length != 1
81
- puts "Usage: svn-dav-gen path"
82
- exit
83
- end
84
-
85
- path = File.expand_path(ARGV[0])
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
- end
90
+ puts RepoMan::ApacheConfigGenerator.new(path).to_httpd_conf
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jaz303-repo-man
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Frame