s3_config 0.1.10 → 0.1.11
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/application.rb +1 -1
- data/lib/s3_config/cli.rb +7 -5
- data/lib/s3_config/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a05d94de5e6a4d7fcd73607b3f6952de42d1c60
|
4
|
+
data.tar.gz: 957c821d289096258fbb9c6fee46dbb3df496d8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 859b6a8598e6a11d0f638f00bdcee6ce363649c72afcf4290b1c360fb7bd142c763fad1d19efb6cf6268a2741f3cb0859b9ec4b3b422576780047b69e7987ab2
|
7
|
+
data.tar.gz: fcab9f9aa7b99346ebdfea3f103ad0871095581d5d1e73b1b1ac06971700b0a8d9da2c4a0212ab364d019276d43e31d3e3c5af2cb1dff749dc5822b5f670de4c
|
data/lib/s3_config/cli.rb
CHANGED
@@ -69,15 +69,17 @@ module S3Config
|
|
69
69
|
end
|
70
70
|
|
71
71
|
desc "unset", "Remove S3Config variable for environment. eg: config unset production KEY"
|
72
|
-
def unset(environment=nil,
|
72
|
+
def unset(environment=nil, *key_values)
|
73
73
|
return unless validate_installed!
|
74
74
|
return error "Environment required. eg: config unset production KEY" if environment.nil?
|
75
|
-
return error "Key required. eg: config unset production KEY" if
|
76
|
-
key = key.upcase
|
75
|
+
return error "Key required. eg: config unset production KEY" if key_values.empty?
|
77
76
|
@application = S3Config.adapter.new environment: environment
|
78
77
|
version = @application.latest_version
|
79
|
-
|
80
|
-
|
78
|
+
key_values.each do |key|
|
79
|
+
key = key.upcase
|
80
|
+
@application.delete key
|
81
|
+
say "Removed #{key} (#{environment})"
|
82
|
+
end
|
81
83
|
say "====="
|
82
84
|
if @application.latest_version != version
|
83
85
|
say "New version: v#{@application.latest_version}"
|
data/lib/s3_config/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: s3_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Zane Shannon
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk
|