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.
- checksums.yaml +4 -4
- data/lib/atlas.rb +1 -1
- data/lib/atlas/cli.rb +5 -4
- 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: 90fde57510e1be1b2127e3b93dd1941614bd1ce1
|
|
4
|
+
data.tar.gz: 761371b883b392eb46ab8e3f96a962e1320071a2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b54bc27572d5192306ea16f54539cb81becdac715ca062b51cfead51975b1b81bb51efe5823068a195583adc3f0352c39c840db456a7a6e17b7b43f74ed9ef8b
|
|
7
|
+
data.tar.gz: 786678654e16f97ae747ad090249686ffa81625c265c9e49cd1e5f8693e4af4db8858891a29e51a3e995189dbf6dc433c75c1c498da75e746a34b5a295ff5ec2
|
data/lib/atlas.rb
CHANGED
data/lib/atlas/cli.rb
CHANGED
|
@@ -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,
|
|
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
|
-
|
|
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.
|
|
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-
|
|
11
|
+
date: 2018-07-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|