Sha256: 5158d62dd1ac6e7e1ed63776a89c61ef49e9fdd51ca4f656c4ea7b2733d51f38

Contents?: true

Size: 664 Bytes

Versions: 3

Compression:

Stored size: 664 Bytes

Contents

# encoding: utf-8

require 'rubygems'

begin
  require 'bundler/setup'
rescue LoadError => e
  warn e.message
  warn "Run `gem install bundler` to install Bundler"
  exit -1
end

require 'rake'
require 'rake/clean'

CLEAN.include('spec/*.xml')

require 'rubygems/tasks'

Gem::Tasks.new

require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new

task :spec    => 'spec/scan.xml'
task :test    => :spec
task :default => :spec

require 'yard'
YARD::Rake::YardocTask.new  
task :doc => :yard

file 'spec/scan.xml' do
  puts ">>> Scanning scanme.nmap.org ..."
  sh 'sudo nmap -v -sS -sU -A -O --script ssh2-enum-algos,ssh-hostkey -oX spec/scan.xml scanme.nmap.org'
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-nmap-0.9.2 Rakefile
ruby-nmap-0.9.1 Rakefile
ruby-nmap-0.9.0 Rakefile