atlas_peering_ctl 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/atlas.rb +1 -1
  3. data/lib/atlas/cli.rb +5 -4
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0b2017387d90906d3f64a06e9663baf6e12220fb
4
- data.tar.gz: 34658bd044a7099426a372c815b3a2b841d851d9
3
+ metadata.gz: 90fde57510e1be1b2127e3b93dd1941614bd1ce1
4
+ data.tar.gz: 761371b883b392eb46ab8e3f96a962e1320071a2
5
5
  SHA512:
6
- metadata.gz: d23387936df34465a03bb2f124d20874d5b9c33da98a520c36b1be5effa90644ad9b58496c3267b8945d2d3981697dc14d1be8fffd33b960bae7e71741618082
7
- data.tar.gz: 7b6659e1e64ca9967be1bdb06927de0c3fcc5ce84e087eb880726bc3643eebc9f8980e205a3880f129bb5ba417fa505412fdae6b0093e17501d22f1cc2f6940d
6
+ metadata.gz: b54bc27572d5192306ea16f54539cb81becdac715ca062b51cfead51975b1b81bb51efe5823068a195583adc3f0352c39c840db456a7a6e17b7b43f74ed9ef8b
7
+ data.tar.gz: 786678654e16f97ae747ad090249686ffa81625c265c9e49cd1e5f8693e4af4db8858891a29e51a3e995189dbf6dc433c75c1c498da75e746a34b5a295ff5ec2
@@ -3,5 +3,5 @@
3
3
  require 'atlas/cli'
4
4
 
5
5
  module Atlas
6
- VERSION = '0.5.0'
6
+ VERSION = '0.6.0'
7
7
  end
@@ -53,8 +53,8 @@ module Atlas
53
53
 
54
54
  desc 'create', 'Create a new Atlas MongoDB peering connection based on the configuration given'
55
55
  option :config, required: true, type: :string, aliases: ['-f'], desc: 'The VPC identificator to make the peering'
56
- option :vpcid, required: true, type: :string, desc: 'The VPC identificator to make the peering'
57
- def create()
56
+ option :vpcid, required: true, type: :string, desc: 'The VPC identificator to make the peering'
57
+ def create
58
58
  Config.configure(options[:config])
59
59
  Config.configure.vpc_id = options[:vpcid]
60
60
 
@@ -68,9 +68,10 @@ module Atlas
68
68
 
69
69
  desc 'delete', 'Delete a Atlas MongoDB peering connection based on the configuration given'
70
70
  option :config, required: true, type: :string, aliases: ['-f'], desc: 'The VPC identificator to make the peering'
71
- def delete(id)
71
+ option :id, required: true, type: :string, desc: 'The peering id to delete'
72
+ def delete
72
73
  Config.configure(options[:config])
73
- Config.configure { |c| c.id = id }
74
+ Config.configure { |c| c.id = options[:id] }
74
75
 
75
76
  client = Client.new(Config.user_name, Config.api_key, Config.group_id)
76
77
  response = client.delete(Config).parsed_response
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.5.0
4
+ version: 0.6.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-17 00:00:00.000000000 Z
11
+ date: 2018-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty