atlas_peering_ctl 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -2
  3. data/lib/atlas.rb +1 -1
  4. data/lib/atlas/cli.rb +3 -2
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 26e50bddd1de2dbef7aca50769db2b10a207582b
4
- data.tar.gz: e7dea59f5f595c932b183f7e412ae2f39e315b85
3
+ metadata.gz: 0b2017387d90906d3f64a06e9663baf6e12220fb
4
+ data.tar.gz: 34658bd044a7099426a372c815b3a2b841d851d9
5
5
  SHA512:
6
- metadata.gz: 4b4b5b403bef3b2670b0d5679d8496144a23e1b63c01bf4de3451dbdac9c7710a5f4ec8e48687f359992fa0bc1692db88fcd7ea2e12a8935337eeb02dad13b55
7
- data.tar.gz: 2677731c1360d1337015b3c1ac26b31c1138ad4c692744a9db6e4b6da9be55616805b880e6b9b37c5bbf8914e5942a757c5ae2e242f3b5d1c0147d1c4466b887
6
+ metadata.gz: d23387936df34465a03bb2f124d20874d5b9c33da98a520c36b1be5effa90644ad9b58496c3267b8945d2d3981697dc14d1be8fffd33b960bae7e71741618082
7
+ data.tar.gz: 7b6659e1e64ca9967be1bdb06927de0c3fcc5ce84e087eb880726bc3643eebc9f8980e205a3880f129bb5ba417fa505412fdae6b0093e17501d22f1cc2f6940d
data/.travis.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 2.4.0
4
- before_install: gem install bundler -v '1.16'
3
+ - 2.4.4
4
+ before_install: gem install bundler -v '1.16.2'
data/lib/atlas.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  require 'atlas/cli'
4
4
 
5
5
  module Atlas
6
- VERSION = '0.4.0'
6
+ VERSION = '0.5.0'
7
7
  end
data/lib/atlas/cli.rb CHANGED
@@ -33,14 +33,13 @@ module Atlas
33
33
  end
34
34
  end
35
35
 
36
- class_option :config, type: :string, aliases: ['-f'], desc: 'The configuration file'
37
-
38
36
  desc 'version', 'Atlas peering CTL version'
39
37
  def version
40
38
  puts Atlas::VERSION
41
39
  end
42
40
 
43
41
  desc 'list', 'List all the Atlas MongoDB peerings for the configuration given'
42
+ option :config, required: true, type: :string, aliases: ['-f'], desc: 'The VPC identificator to make the peering'
44
43
  def list
45
44
  Config.configure(options[:config])
46
45
 
@@ -53,6 +52,7 @@ module Atlas
53
52
  end
54
53
 
55
54
  desc 'create', 'Create a new Atlas MongoDB peering connection based on the configuration given'
55
+ option :config, required: true, type: :string, aliases: ['-f'], desc: 'The VPC identificator to make the peering'
56
56
  option :vpcid, required: true, type: :string, desc: 'The VPC identificator to make the peering'
57
57
  def create()
58
58
  Config.configure(options[:config])
@@ -67,6 +67,7 @@ module Atlas
67
67
  end
68
68
 
69
69
  desc 'delete', 'Delete a Atlas MongoDB peering connection based on the configuration given'
70
+ option :config, required: true, type: :string, aliases: ['-f'], desc: 'The VPC identificator to make the peering'
70
71
  def delete(id)
71
72
  Config.configure(options[:config])
72
73
  Config.configure { |c| c.id = id }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: atlas_peering_ctl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Juarez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-12 00:00:00.000000000 Z
11
+ date: 2018-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty