simnos 0.1.1.beta2 → 0.1.1

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: 331d3fe90ec21685f9fa4a969c2e3d77436d88c3
4
- data.tar.gz: e9053c2ad17c3d06fceef1097eed7066e8fc94ab
3
+ metadata.gz: 46ece4215baf7e53e68422ab22855f8758440803
4
+ data.tar.gz: 7cfe5d14b3f5780f5009e6050cb5491e71212ef1
5
5
  SHA512:
6
- metadata.gz: 61869e91186323165f8ea9cba28e1a79c503b25f10dec59167fea025abca8b9735bc14b5d843151e947f983abb2a20fa399e968fcf7fa01b63652c25bcaa34c5
7
- data.tar.gz: a3aec65e414b5cab557b9d2ca491ee84e3188f1b8f93c913aa4ba49ef2681b12d7b524b2b970e49510126173c0c7be5d2eb7951eca0340f82d39f5791f36f2e0
6
+ metadata.gz: 5873c87f7b86b96102d11b52ac0280d34a4f3688e60995804a6f26c5454e9f2c764369e58d69b0b9bef6766f1a47a357dab27275115d23f59bf83dc3c7ab15f7
7
+ data.tar.gz: f7321d521535d66abcc420353d7bd478a2e6210ed7c70859b60ec362efd0b8e16b19ab6198c9c11e39e77839831543113c300af4e572d0d7e0c9edc24c574b47
data/README.md CHANGED
@@ -46,6 +46,8 @@ Usage: simnos [options]
46
46
  no color
47
47
  --with-subscriptions
48
48
  manage subscriptions
49
+ --only-create-subscriptions
50
+ only create subscriptions(recreation will occur with recreate-subscriptions option, even this option is enabled)
49
51
  --recreate-subscriptions
50
52
  recreate subscriptions
51
53
  --secret-provider NAME
data/lib/simnos/cli.rb CHANGED
@@ -44,6 +44,7 @@ module Simnos
44
44
  opts.on('-s', '--split', 'split export DSL file to 1 per topic') { @options[:split] = true }
45
45
  opts.on('', '--no-color', 'no color') { @options[:color] = false }
46
46
  opts.on('', '--with-subscriptions', 'manage subscriptions') { @options[:with_subscriptions] = true }
47
+ opts.on('', '--only-create-subscriptions', 'only create subscriptions(recreation will occur with recreate-subscriptions option, even this option is enabled)') { @options[:only_create_subscriptions] = true }
47
48
  opts.on('', '--recreate-subscriptions', 'recreate subscriptions') { @options[:recreate_subscriptions] = true }
48
49
  opts.on('', '--secret-provider NAME', 'use secret value expansion') { |v| @options[:secret_provider] = v }
49
50
  opts.on('-i', '--include-names NAMES', 'include SNS names', Array) { |v| @options[:includes] = v }
data/lib/simnos/client.rb CHANGED
@@ -105,8 +105,10 @@ module Simnos
105
105
  aws_sub_by_key.delete(key)
106
106
  end
107
107
 
108
- # delete
109
- delete_subscriptions(aws_topic, aws_sub_by_key)
108
+ unless @options[:only_create_subscriptions]
109
+ # delete
110
+ delete_subscriptions(aws_topic, aws_sub_by_key)
111
+ end
110
112
  end
111
113
 
112
114
  def traverse_topics(dsl_topics_all, aws_topics_by_name)
@@ -1,3 +1,3 @@
1
1
  module Simnos
2
- VERSION = "0.1.1.beta2"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simnos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1.beta2
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - wata
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-26 00:00:00.000000000 Z
11
+ date: 2017-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
@@ -186,9 +186,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
186
186
  version: '0'
187
187
  required_rubygems_version: !ruby/object:Gem::Requirement
188
188
  requirements:
189
- - - ">"
189
+ - - ">="
190
190
  - !ruby/object:Gem::Version
191
- version: 1.3.1
191
+ version: '0'
192
192
  requirements: []
193
193
  rubyforge_project:
194
194
  rubygems_version: 2.6.13