openvas-cli 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.4
1
+ 0.2.5
data/lib/openvas-cli.rb CHANGED
@@ -1,4 +1,4 @@
1
- require File.expand_path(File.join(File.dirname(__FILE__), 'openvas-cli/configuration.rb'))
1
+ Dir[File.expand_path(File.join(File.dirname(__FILE__), "openvas-cli")) + "/**/*.*"].each { |f| require f }
2
2
 
3
3
  module OpenvasCli
4
4
  def self.configuration
@@ -3,6 +3,7 @@ require 'vas_exceptions'
3
3
  require 'xml_addin'
4
4
  require 'openssl'
5
5
  require 'timeout'
6
+ require 'socket'
6
7
 
7
8
  module OpenvasCli
8
9
  class VasConnection
data/openvas-cli.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{openvas-cli}
8
- s.version = "0.2.4"
8
+ s.version = "0.2.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Reed Swenson"]
@@ -62,7 +62,8 @@ Gem::Specification.new do |s|
62
62
  "spec/openvas-cli/vas_schedule_spec.rb",
63
63
  "spec/openvas-cli/vas_target_spec.rb",
64
64
  "spec/openvas-cli/vas_task_spec.rb",
65
- "spec/spec_helper.rb"
65
+ "spec/spec_helper.rb",
66
+ "vas_test.rb"
66
67
  ]
67
68
  s.homepage = %q{http://reedswenson.github.com/openvas-cli/}
68
69
  s.licenses = ["GPL v2 or greater"]
data/vas_test.rb ADDED
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/ruby
2
+ require 'rubygems'
3
+ require 'openvas-cli'
4
+
5
+ OpenvasCli.configure { |config|
6
+ config.password = "Password"
7
+ }
8
+
9
+ families = OpenvasCli::VasNVTFamily.get_all
10
+ families.each { |f|
11
+ puts f.to_yaml
12
+ }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openvas-cli
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 4
10
- version: 0.2.4
9
+ - 5
10
+ version: 0.2.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Reed Swenson
@@ -244,6 +244,7 @@ files:
244
244
  - spec/openvas-cli/vas_target_spec.rb
245
245
  - spec/openvas-cli/vas_task_spec.rb
246
246
  - spec/spec_helper.rb
247
+ - vas_test.rb
247
248
  has_rdoc: true
248
249
  homepage: http://reedswenson.github.com/openvas-cli/
249
250
  licenses: