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.
60 61 62 63 |
# File 'lib/almirah.rb', line 60 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.
58 59 60 |
# File 'lib/almirah.rb', line 58 def project_utility @project_utility end |
Class Method Details
.combine_protocols ⇒ Object
82 83 84 |
# File 'lib/almirah.rb', line 82 def self.combine_protocols @project_utility.combine_protocols end |
.combine_run(test_run) ⇒ Object
86 87 88 |
# File 'lib/almirah.rb', line 86 def self.combine_run(test_run) @project_utility.combine_run test_run end |
.create_new_project_structure(project_name) ⇒ Object
73 74 75 |
# File 'lib/almirah.rb', line 73 def self.create_new_project_structure(project_name) ProjectTemplate.new project_name end |
.create_project_utility(project_folder) ⇒ Object
77 78 79 80 |
# File 'lib/almirah.rb', line 77 def self.create_project_utility(project_folder) config = ProjectConfiguration.new project_folder @project_utility = ProjectUtility.new config end |
Instance Method Details
#default ⇒ Object
90 91 92 |
# File 'lib/almirah.rb', line 90 def default @project.specifications_and_protocols end |
#getGemRoot ⇒ Object
65 66 67 |
# File 'lib/almirah.rb', line 65 def getGemRoot File. './..', File.dirname(__FILE__) end |
#run(test_run) ⇒ Object
69 70 71 |
# File 'lib/almirah.rb', line 69 def run(test_run) @project.specifications_and_results test_run end |