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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e186bea791a92b33cdc94e1ac695ff54b07b78f5
4
- data.tar.gz: 002d681421a1868434762f6c997334b544b33baf
3
+ metadata.gz: 7a05d94de5e6a4d7fcd73607b3f6952de42d1c60
4
+ data.tar.gz: 957c821d289096258fbb9c6fee46dbb3df496d8a
5
5
  SHA512:
6
- metadata.gz: 1508796682cfe35e4fb6b86794f13a3a0124a0f91fbb3549083335980651779656ef25154ba7f5dc7a67419655e516bc2ad9baaa4132ea903ce517d2f3e5f9f8
7
- data.tar.gz: b1fd8cf059e7b0063d8be63abb12d57a2e418a4815c15377aabe550e3a4eb25cda33ea715c8969bad59ae66402a1c63a64da9f99b5c14e33aa0f6544a233ea58
6
+ metadata.gz: 859b6a8598e6a11d0f638f00bdcee6ce363649c72afcf4290b1c360fb7bd142c763fad1d19efb6cf6268a2741f3cb0859b9ec4b3b422576780047b69e7987ab2
7
+ data.tar.gz: fcab9f9aa7b99346ebdfea3f103ad0871095581d5d1e73b1b1ac06971700b0a8d9da2c4a0212ab364d019276d43e31d3e3c5af2cb1dff749dc5822b5f670de4c
@@ -103,7 +103,7 @@ module S3Config
103
103
  end
104
104
 
105
105
  def default_version
106
- @default_version ||= ::ENV.fetch("S3_CONFIG_REVISION"){ latest_version }
106
+ @default_version = ::ENV.fetch("S3_CONFIG_REVISION"){ latest_version }
107
107
  end
108
108
 
109
109
  def read_configuration
@@ -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, key=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 key.nil?
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
- @application.delete key
80
- say "Removed #{key} (#{environment})"
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}"
@@ -1,3 +1,3 @@
1
1
  module S3Config
2
- VERSION = "0.1.10"
2
+ VERSION = "0.1.11"
3
3
  end
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.10
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-04-19 00:00:00.000000000 Z
11
+ date: 2017-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk