Class: Almirah

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#projectObject

Returns the value of attribute project.



57
58
59
# File 'lib/almirah.rb', line 57

def project
  @project
end

#project_utilityObject

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_protocolsObject



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

#defaultObject



89
90
91
# File 'lib/almirah.rb', line 89

def default
  @project.specifications_and_protocols
end

#getGemRootObject



64
65
66
# File 'lib/almirah.rb', line 64

def getGemRoot
  File.expand_path './..', 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