Module: Dradis::Plugins::ThorHelper

Defined in:
lib/dradis/plugins/thor_helper.rb

Overview

Helper methods for plugin Thor tasks

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#loggerObject

Returns the value of attribute logger.



5
6
7
# File 'lib/dradis/plugins/thor_helper.rb', line 5

def logger
  @logger
end

#task_optionsObject

Returns the value of attribute task_options.



5
6
7
# File 'lib/dradis/plugins/thor_helper.rb', line 5

def task_options
  @task_options
end

Instance Method Details

#detect_and_set_project_scopeObject



7
8
9
# File 'lib/dradis/plugins/thor_helper.rb', line 7

def detect_and_set_project_scope
  task_options[:project_id] = Project.new.id
end