Class: NexposeTasks

Inherits:
Thor
  • Object
show all
Defined in:
lib/tasks/thorfile.rb

Instance Method Summary collapse

Instance Method Details

#full(file_path) ⇒ Object



7
8
9
10
11
12
# File 'lib/tasks/thorfile.rb', line 7

def full(file_path)
  detect_and_set_project_scope

  importer = Dradis::Plugins::Nexpose::Full::Importer.new(task_options)
  importer.import(file: file_path)
end

#simple(file_path) ⇒ Object



15
16
17
18
19
20
# File 'lib/tasks/thorfile.rb', line 15

def simple(file_path)
  detect_and_set_project_scope

  importer = Dradis::Plugins::Nexpose::Simple::Importer.new(task_options)
  importer.import(file: file_path)
end