Class: BDDGen::Tasks

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

Class Method Summary collapse

Class Method Details

.cucumberObject



3
4
5
# File 'lib/bddgen/tasks.rb', line 3

def self.cucumber
  @cucumber_tasks ||= read_task_file('cucumber.rb')
end

.rspecObject



7
8
9
# File 'lib/bddgen/tasks.rb', line 7

def self.rspec
  @rspec_tasks ||= read_task_file('rspec.rb')
end

.yard(project_name) ⇒ Object



11
12
13
14
15
# File 'lib/bddgen/tasks.rb', line 11

def self.yard(project_name)
  @yard_tasks ||= read_task_file('yard.rb').gsub(
    '{{project_name}}', project_name
  )
end