Module: Dradis::Plugins::ContentService::Boards

Extended by:
ActiveSupport::Concern
Included in:
Base
Defined in:
lib/dradis/plugins/content_service/boards.rb

Instance Method Summary collapse

Instance Method Details

#all_boardsObject



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

def all_boards
  project.boards
end

#create_board(args = {}) ⇒ Object



13
14
15
16
17
18
19
20
21
# File 'lib/dradis/plugins/content_service/boards.rb', line 13

def create_board(args={})
  name    = args.fetch(:name, default_board_name)
  node_id = args.fetch(:node_id, default_node_id)
  Board.create(
    name: name,
    node_id: node_id,
    project: project
  )
end

#project_boardsObject



9
10
11
# File 'lib/dradis/plugins/content_service/boards.rb', line 9

def project_boards
  project.methodology_library.boards
end