nexposecli 0.2.9 → 0.3.1
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 +15 -2
- data/lib/nexposecli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: be9b6f684b98cae117aac8175e12d9d02b9ed15d
|
|
4
|
+
data.tar.gz: dbddae5be4eb50490d9a8c30cd89b5443c4f714b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0914c383059ce8761118e926fe35aba88341bb5a771a3d8eb041a8a6692a326efd59fbdd6b678353623e3f3bf2f36237e5add34f068944cade5984a6a8a1b055
|
|
7
|
+
data.tar.gz: ad4de24aa058f00344fc674190b02372782824829ee46700e4f5ed21375dfe4ddc6db637a0971f40bcfe6beadea2f5053b8149d7ef55fd4fcabed8356d15cab4
|
data/bin/nexposecli
CHANGED
|
@@ -1144,11 +1144,24 @@ when 16 # TARGET SITE
|
|
|
1144
1144
|
puts "Site was successfully created. The Site Id is: #{site_created}"
|
|
1145
1145
|
when 2 # list
|
|
1146
1146
|
uputs("ACTION", 'list SITE action requested')
|
|
1147
|
+
filter = "name"
|
|
1148
|
+
filterv = ".*"
|
|
1149
|
+
|
|
1150
|
+
if args.filter != nil && args.filterv != nil
|
|
1151
|
+
filter = "#{args.filter}"
|
|
1152
|
+
filterv = "#{args.filterv}"
|
|
1153
|
+
end
|
|
1154
|
+
|
|
1147
1155
|
site_listing = @nsc.list_sites
|
|
1156
|
+
|
|
1148
1157
|
site_listing.each do |site|
|
|
1149
|
-
|
|
1158
|
+
if site.public_send(filter).match(filterv)
|
|
1159
|
+
puts("Site: id:#{site.id}\t name:'#{site.name}'\t--description:#{site.description}\n")
|
|
1160
|
+
upp site
|
|
1161
|
+
end
|
|
1150
1162
|
end
|
|
1151
|
-
|
|
1163
|
+
|
|
1164
|
+
|
|
1152
1165
|
when 4 # show
|
|
1153
1166
|
uputs("ACTION", 'show SITE action requested')
|
|
1154
1167
|
site = ""
|
data/lib/nexposecli/version.rb
CHANGED