s3_config 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/s3_config/cli.rb +8 -0
- data/lib/s3_config/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fa60606b5cb046346b07111d3b3b63b26bb5a09
|
4
|
+
data.tar.gz: ca07fc7bb9c864d6d8a4c2318e814a9c7c651d62
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ef731f32cead1b2d9d39130f6b8c4a27af5aed05f23a926cdc1770cc29c080b59f98e84adfef70953014c3bf879d3bc0ff2111fcb007daf343cdc3505ec7801
|
7
|
+
data.tar.gz: 422c1e2e9474abe6a14c566752e77bf24569cb057072f837db83b33fb1a5c876bac8f085999299b906573f8b4f884e9a70cf7c679ef25bf49df430303276f952
|
data/lib/s3_config/cli.rb
CHANGED
@@ -43,9 +43,13 @@ module S3Config
|
|
43
43
|
return
|
44
44
|
end
|
45
45
|
@application = S3Config.adapter.new environment: environment
|
46
|
+
version = @application.latest_version
|
46
47
|
@application.write key, value
|
47
48
|
say "Set #{key}=#{value} (#{environment})"
|
48
49
|
say "====="
|
50
|
+
if @application.latest_version != version
|
51
|
+
say "New version: v#{@application.latest_version}"
|
52
|
+
end
|
49
53
|
say "Use version: v#{@application.latest_version}"
|
50
54
|
end
|
51
55
|
|
@@ -69,9 +73,13 @@ module S3Config
|
|
69
73
|
return error "Key required. eg: config unset production KEY" if key.nil?
|
70
74
|
key = key.upcase
|
71
75
|
@application = S3Config.adapter.new environment: environment
|
76
|
+
version = @application.latest_version
|
72
77
|
@application.delete key
|
73
78
|
say "Removed #{key} (#{environment})"
|
74
79
|
say "====="
|
80
|
+
if @application.latest_version != version
|
81
|
+
say "New version: v#{@application.latest_version}"
|
82
|
+
end
|
75
83
|
say "Use version: v#{@application.latest_version}"
|
76
84
|
end
|
77
85
|
|
data/lib/s3_config/version.rb
CHANGED