module Dradis::Plugins::ThorHelper
Helper methods for plugin Thor
tasks
Attributes
logger[RW]
task_options[RW]
Public Instance Methods
detect_and_set_project_scope()
click to toggle source
# File lib/dradis/plugins/thor_helper.rb, line 7 def detect_and_set_project_scope task_options[:project_id] = Project.new.id end
Private Instance Methods
default_logger()
click to toggle source
# File lib/dradis/plugins/thor_helper.rb, line 21 def default_logger STDOUT.sync = true logger = Logger.new(STDOUT) logger.level = Logger::DEBUG logger end