Class: Barman::ProjectGenerators::QA

Inherits:
Object
  • Object
show all
Defined in:
lib/barman/project_generators/qa.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(project_name, options) ⇒ QA

Returns a new instance of QA.



10
11
12
13
14
15
16
# File 'lib/barman/project_generators/qa.rb', line 10

def initialize(project_name, options)
  @project_name   = project_name
  @options        = options
  @templates_path = File.join(Barman.templates_path, "qa")
  @project_path   = File.join(".", project_name.to_s)
  @test_path      = File.join(project_path, "test")
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



8
9
10
# File 'lib/barman/project_generators/qa.rb', line 8

def options
  @options
end

#project_nameObject (readonly)

Returns the value of attribute project_name.



8
9
10
# File 'lib/barman/project_generators/qa.rb', line 8

def project_name
  @project_name
end

#project_pathObject (readonly)

Returns the value of attribute project_path.



8
9
10
# File 'lib/barman/project_generators/qa.rb', line 8

def project_path
  @project_path
end

#templates_pathObject (readonly)

Returns the value of attribute templates_path.



8
9
10
# File 'lib/barman/project_generators/qa.rb', line 8

def templates_path
  @templates_path
end

#test_pathObject (readonly)

Returns the value of attribute test_path.



8
9
10
# File 'lib/barman/project_generators/qa.rb', line 8

def test_path
  @test_path
end

Instance Method Details

#generate!Object



18
19
20
21
22
23
# File 'lib/barman/project_generators/qa.rb', line 18

def generate!
  create_project_dir
  create_test_dir
  copy_template_files
  install_gems
end