def scan(options={},exec_options={},&block)
      run_task(Task.new(options,&block),exec_options)
    end
def scan(options={},exec_options={},&block)
      run_task(Task.new(options,&block),exec_options)
    end
Performs a scan.

 @param [Hash{Symbol => Object}] options
   Additional options for nmap.

 @param [Hash{Symbol => Object}] exec_options
   Additional exec-options.

 @yield [task]
   If a block is given, it will be passed a task object
   used to specify options for nmap.

 @yieldparam [Task] task
   The nmap task object.

 @return [Boolean]
   Specifies whether the command exited normally.

 @see http://rubydoc.info/gems/rprogram/0.3.0/RProgram/Program#run-instance_method
   For additional exec-options.