Class: Barman::ProjectGenerators::QA
- Inherits:
-
Object
- Object
- Barman::ProjectGenerators::QA
- Defined in:
- lib/barman/project_generators/qa.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#project_name ⇒ Object
readonly
Returns the value of attribute project_name.
-
#project_path ⇒ Object
readonly
Returns the value of attribute project_path.
-
#templates_path ⇒ Object
readonly
Returns the value of attribute templates_path.
-
#test_path ⇒ Object
readonly
Returns the value of attribute test_path.
Instance Method Summary collapse
- #generate! ⇒ Object
-
#initialize(project_name, options) ⇒ QA
constructor
A new instance of QA.
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, ) @project_name = project_name = @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
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/barman/project_generators/qa.rb', line 8 def end |
#project_name ⇒ Object (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_path ⇒ Object (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_path ⇒ Object (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_path ⇒ Object (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 |