enfcli 3.10.1 → 3.10.2.pre.alpha

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 90f89c89030a2f3b0a0fccc8df83b513e649d0f7596828081e25335f0b4e8ffe
4
- data.tar.gz: d5eab6deeb14ed916353c9076349495a68f65576e09384293042e62e16b46617
3
+ metadata.gz: 911c67da3112f2c2240015845fd40ab32f4d1068511b2ffab9c986e706320312
4
+ data.tar.gz: 2e6d53761dfc8e6cab5b547002d70b9e512527b066bfc25f7631b910f493cea5
5
5
  SHA512:
6
- metadata.gz: 431e3cf3ae25c7cd54fde77bc5c0692cc13e338d7702a9c03e05b61767449ec799b0808b693464fd9f55c14e603c5ed448db00df9c99bf20d10aed0b3f370d73
7
- data.tar.gz: 9ec01946019c67e15c53f7cba378584bf68c8050c82b770ace1207e32deb5114334906277cc3022f3761497ad95df827c7611a41511547a5cdd06202e47570c1
6
+ metadata.gz: 258b0fce7207eb1628da9c2ae321b49f8721620d3379af8e21ae59fd0668eb764dac903bd35cd82860d3a1a8f52044dfaf01e482a6acf67f262c949350fc753f
7
+ data.tar.gz: 925900da48be2d664d7bd3d8d3b44db6b7dffc37fc1a406c611f6293f4e47edd9deaba76038e87ae02c544b96163c0d33740a73e06d2bc6228b84ce9a9713cf0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- enfcli (3.10.1)
4
+ enfcli (3.10.2.pre.alpha)
5
5
  rest-client (~> 2.0)
6
6
  terminal-table
7
7
  thor (~> 0.20.0)
data/lib/enfapi.rb CHANGED
@@ -440,14 +440,9 @@ module EnfApi
440
440
  }
441
441
  end
442
442
 
443
- def activate_domain(domain_network)
444
- @api["/api/xcr/v2/domains/#{domain_network}/status"].put( '', @headers) {|response, request, result|
445
- process_api_response response, request, result
446
- }
447
- end
448
-
449
- def deactivate_domain(domain_network)
450
- @api["/api/xcr/v2/domains/#{domain_network}/status"].delete( @headers) {|response, request, result|
443
+ def update_domain_status(domain_network, status)
444
+ json = to_json(status)
445
+ @api["/api/xcr/v2/domains/#{domain_network}/status"].put(json, @headers) {|response, request, result|
451
446
  process_api_response response, request, result
452
447
  }
453
448
  end
@@ -266,7 +266,7 @@ module EnfCli
266
266
  def activate_domain
267
267
  try_with_rescue_in_session do
268
268
  # Call api
269
- data = EnfApi::API.instance.activate_domain options[:network]
269
+ data = EnfApi::API.instance.update_domain_status options[:network], {:status => "ACTIVE"}
270
270
  domains = data[:data]
271
271
 
272
272
  # Display the data
@@ -280,7 +280,7 @@ module EnfCli
280
280
  def deactivate_domain
281
281
  try_with_rescue_in_session do
282
282
  # Call api
283
- data = EnfApi::API.instance.deactivate_domain options[:network]
283
+ data = EnfApi::API.instance.update_domain_status options[:network], {:status => "READY"}
284
284
  domains = data[:data]
285
285
 
286
286
  # Display the data
@@ -14,5 +14,5 @@
14
14
  # limitations under the License.
15
15
  #
16
16
  module EnfCli
17
- VERSION = '3.10.1'
17
+ VERSION = '3.10.2-alpha'
18
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enfcli
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.10.1
4
+ version: 3.10.2.pre.alpha
5
5
  platform: ruby
6
6
  authors:
7
7
  - Venkatakumar Srinivasan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-10 00:00:00.000000000 Z
11
+ date: 2019-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -209,9 +209,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
209
209
  version: '0'
210
210
  required_rubygems_version: !ruby/object:Gem::Requirement
211
211
  requirements:
212
- - - ">="
212
+ - - ">"
213
213
  - !ruby/object:Gem::Version
214
- version: '0'
214
+ version: 1.3.1
215
215
  requirements: []
216
216
  rubygems_version: 3.0.1
217
217
  signing_key: