silo_manager 0.0.6 → 0.0.7
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.
- data/bin/silo_manager +15 -8
- data/lib/nexpose.rb +1 -1
- metadata +3 -3
data/bin/silo_manager
CHANGED
@@ -424,12 +424,13 @@ def list_mtu
|
|
424
424
|
puts "For detailed information on a specific mtu enter the id"
|
425
425
|
puts "Or just hit enter to list all ids"
|
426
426
|
|
427
|
-
id = get_integer_input 'MTU ID'
|
427
|
+
id = get_integer_input 'MTU ID', true
|
428
428
|
if id == :main
|
429
429
|
return
|
430
430
|
elsif id.nil?
|
431
|
+
puts 'List of MTU IDs:'
|
431
432
|
mtu_list.each do |mtu_map|
|
432
|
-
|
433
|
+
puts mtu_map[:id]
|
433
434
|
end
|
434
435
|
else
|
435
436
|
id_found = false
|
@@ -466,15 +467,17 @@ def delete_mtu
|
|
466
467
|
if name == :main
|
467
468
|
return
|
468
469
|
end
|
470
|
+
when /:main/
|
471
|
+
return
|
469
472
|
else
|
470
|
-
|
473
|
+
puts 'Invalid input'
|
471
474
|
next
|
472
475
|
end
|
473
476
|
|
474
477
|
begin
|
475
478
|
@client_api.login
|
476
479
|
@client_api.delete_mtu name, id
|
477
|
-
|
480
|
+
puts 'Successfully deleted MTU!'
|
478
481
|
rescue Exception => e
|
479
482
|
puts e.message
|
480
483
|
end
|
@@ -499,15 +502,17 @@ def delete_silo_profile
|
|
499
502
|
if name == :main
|
500
503
|
return
|
501
504
|
end
|
505
|
+
when /:main/
|
506
|
+
return
|
502
507
|
else
|
503
|
-
|
508
|
+
puts 'Invalid input'
|
504
509
|
next
|
505
510
|
end
|
506
511
|
|
507
512
|
begin
|
508
513
|
@client_api.login
|
509
514
|
@client_api.delete_silo_profile name, id
|
510
|
-
|
515
|
+
puts 'Successfully deleted silo profile!'
|
511
516
|
rescue Exception => e
|
512
517
|
puts e.message
|
513
518
|
end
|
@@ -531,15 +536,17 @@ def delete_silo
|
|
531
536
|
if name == :main
|
532
537
|
return
|
533
538
|
end
|
539
|
+
when /:main/
|
540
|
+
return
|
534
541
|
else
|
535
|
-
|
542
|
+
puts 'Invalid input'
|
536
543
|
next
|
537
544
|
end
|
538
545
|
|
539
546
|
begin
|
540
547
|
@client_api.login
|
541
548
|
@client_api.delete_silo name, id
|
542
|
-
|
549
|
+
puts 'Successfully deleted silo!'
|
543
550
|
rescue Exception => e
|
544
551
|
puts e.message
|
545
552
|
end
|
data/lib/nexpose.rb
CHANGED
@@ -553,7 +553,7 @@ module NexposeAPI
|
|
553
553
|
# Lists all the multi-tenant users and their attributes.
|
554
554
|
#-------------------------------------------------------------------------
|
555
555
|
def list_mtu
|
556
|
-
xml = make_xml('
|
556
|
+
xml = make_xml('MultiTenantUserListingRequest')
|
557
557
|
r = execute xml, '1.2'
|
558
558
|
|
559
559
|
if r.success
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: silo_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -14,7 +14,7 @@ default_executable:
|
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: librex
|
17
|
-
requirement: &
|
17
|
+
requirement: &24097104 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,7 +22,7 @@ dependencies:
|
|
22
22
|
version: 0.0.32
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *24097104
|
26
26
|
description: ! ' This is a tool is used to provide CRUD silo operations for Nexpose.
|
27
27
|
|
28
28
|
'
|