nexposecli 0.3.6 → 0.3.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.
- checksums.yaml +4 -4
- data/bin/nexposecli +17 -1
- data/lib/nexposecli/version.rb +1 -1
- 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: 05c2cc0355b4dc4ede9179fc311ccd917adfce18
|
|
4
|
+
data.tar.gz: b8d3ec7afc4ca6ef6bd6507929e49799ac228f8b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cfd29b590e995b68b35f9a092c784878b126412b4985b03c3c36d87924bd935bd554b03e0b05d1ddf716dfb255046528f7f5dc313b3c6a8d0ad4ed17e821ed8c
|
|
7
|
+
data.tar.gz: 9456bc9dc1a979c8ceb40518bf1d1c83fe2a5f8fca1b548e425c4e16e8149457cf74976c33ff710eae51efee4f36d8407d222aa62107955956d73870483bea74
|
data/bin/nexposecli
CHANGED
|
@@ -1757,7 +1757,23 @@ when 512 # TARGET DASSET
|
|
|
1757
1757
|
else
|
|
1758
1758
|
uputs("ACTION", 'update DASSET action requested')
|
|
1759
1759
|
dag = Nexpose::DynamicAssetGroup.load(@nsc, args.id.to_i)
|
|
1760
|
-
|
|
1760
|
+
|
|
1761
|
+
# determine if this is an append or replace update
|
|
1762
|
+
if args.action
|
|
1763
|
+
# actions = name, add criteria, match, flush and replace criteria, consider help to display valid search criteria
|
|
1764
|
+
# filter = Field, Operator, Value
|
|
1765
|
+
case args.action
|
|
1766
|
+
when "name"
|
|
1767
|
+
dag.name = args.filter.to_s
|
|
1768
|
+
when "append" # append new criteria
|
|
1769
|
+
dag.criteria.criteria << asset_crit
|
|
1770
|
+
when "replace" # replace criteria
|
|
1771
|
+
dag.criteria.criteria.clear
|
|
1772
|
+
dag.criteria.criteria << asset_crit
|
|
1773
|
+
else
|
|
1774
|
+
puts 'The action requested is not implemented for target'
|
|
1775
|
+
end
|
|
1776
|
+
end
|
|
1761
1777
|
if args.match
|
|
1762
1778
|
dag.criteria.match = "#{args.match.to_s}"
|
|
1763
1779
|
end
|
data/lib/nexposecli/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nexposecli
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Erik Gomez
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2017-
|
|
12
|
+
date: 2017-05-08 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: nexpose
|