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.



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

#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.



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

def project_utility
  @project_utility
end

Class Method Details

.combine_protocolsObject



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

#defaultObject



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

def default
  @project.specifications_and_protocols
end

#getGemRootObject



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

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