production-sync 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/production-sync +11 -5
- data/lib/production-sync/version.rb +1 -1
- metadata +2 -2
data/bin/production-sync
CHANGED
@@ -25,13 +25,19 @@ ARGV.options do |opts|
|
|
25
25
|
}
|
26
26
|
|
27
27
|
opts.on('-l',"--list","Lists sites") {
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
28
|
+
|
29
|
+
if not ProductionSync.config
|
30
|
+
puts "Can't read config file"
|
31
|
+
exit
|
32
|
+
else
|
33
|
+
ProductionSync.config.each do |name,value|
|
34
|
+
if name != "global"
|
35
|
+
puts "#{name}:\n"
|
36
|
+
value.each { |k,v| puts "\s\s#{k}: #{v}\n" }
|
37
|
+
end
|
32
38
|
end
|
39
|
+
exit
|
33
40
|
end
|
34
|
-
exit
|
35
41
|
}
|
36
42
|
|
37
43
|
opts.parse!
|