Class: Almirah
- Inherits:
-
Object
- Object
- Almirah
- Defined in:
- lib/almirah.rb
Instance Attribute Summary collapse
-
#project ⇒ Object
Returns the value of attribute project.
-
#project_utility ⇒ Object
Returns the value of attribute project_utility.
Class Method Summary collapse
- .combine_protocols ⇒ Object
- .combine_run(test_run) ⇒ Object
- .create_new_project_structure(project_name) ⇒ Object
- .create_project_utility(project_folder) ⇒ Object
Instance Method Summary collapse
- #default ⇒ Object
- #getGemRoot ⇒ Object
-
#initialize(project_folder) ⇒ Almirah
constructor
A new instance of Almirah.
- #run(test_run) ⇒ Object
Constructor Details
#initialize(project_folder) ⇒ Almirah
Returns a new instance of Almirah.
59 60 61 62 |
# File 'lib/almirah.rb', line 59 def initialize(project_folder) config = ProjectConfiguration.new project_folder @project = Project.new config end |
Instance Attribute Details
#project ⇒ Object
Returns the value of attribute project.
57 58 59 |
# File 'lib/almirah.rb', line 57 def project @project end |
#project_utility ⇒ Object
Returns the value of attribute project_utility.
57 58 59 |
# File 'lib/almirah.rb', line 57 def project_utility @project_utility end |
Class Method Details
.combine_protocols ⇒ Object
81 82 83 |
# File 'lib/almirah.rb', line 81 def self.combine_protocols @project_utility.combine_protocols end |
.combine_run(test_run) ⇒ Object
85 86 87 |
# File 'lib/almirah.rb', line 85 def self.combine_run(test_run) @project_utility.combine_run test_run end |
.create_new_project_structure(project_name) ⇒ Object
72 73 74 |
# File 'lib/almirah.rb', line 72 def self.create_new_project_structure(project_name) ProjectTemplate.new project_name end |
.create_project_utility(project_folder) ⇒ Object
76 77 78 79 |
# File 'lib/almirah.rb', line 76 def self.create_project_utility(project_folder) config = ProjectConfiguration.new project_folder @project_utility = ProjectUtility.new config end |
Instance Method Details
#default ⇒ Object
89 90 91 |
# File 'lib/almirah.rb', line 89 def default @project.specifications_and_protocols end |
#getGemRoot ⇒ Object
64 65 66 |
# File 'lib/almirah.rb', line 64 def getGemRoot File. './..', File.dirname(__FILE__) end |
#run(test_run) ⇒ Object
68 69 70 |
# File 'lib/almirah.rb', line 68 def run(test_run) @project.specifications_and_results test_run end |