class SaintTasks
Public Instance Methods
upload(file_path)
click to toggle source
# File lib/tasks/thorfile.rb, line 7 def upload(file_path) require 'config/environment' unless File.exists?(file_path) $stderr.puts "** the file [#{file_path}] does not exist" exit(-1) end detect_and_set_project_scope importer = Dradis::Plugins::Saint::Importer.new(task_options) importer.import(file: file_path) end