production-sync 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
- ProductionSync.config.each do |name,value|
29
- if name != "global"
30
- puts "#{name}:\n"
31
- value.each { |k,v| puts "\s\s#{k}: #{v}\n" }
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!
@@ -1,3 +1,3 @@
1
1
  module ProductionSync
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Bryan Shelton