Class: Chekku::DefinitionsService
- Inherits:
-
Object
- Object
- Chekku::DefinitionsService
- Defined in:
- lib/chekku/definitions_service.rb
Instance Attribute Summary collapse
-
#definitions ⇒ Object
Returns the value of attribute definitions.
Instance Method Summary collapse
-
#definition_for(definition_name) ⇒ Definition
Retrieve one Definition from the list.
-
#load_definitions_for(file_path) ⇒ Object
load the Definition list for the needed dependencies.
Instance Attribute Details
#definitions ⇒ Object
Returns the value of attribute definitions.
5 6 7 |
# File 'lib/chekku/definitions_service.rb', line 5 def definitions @definitions end |
Instance Method Details
#definition_for(definition_name) ⇒ Definition
Retrieve one Definition from the list
18 19 20 |
# File 'lib/chekku/definitions_service.rb', line 18 def definition_for(definition_name) @definitions.detect{ |definition| definition.name == definition_name } if @definitions end |
#load_definitions_for(file_path) ⇒ Object
load the Definition list for the needed dependencies
10 11 12 |
# File 'lib/chekku/definitions_service.rb', line 10 def load_definitions_for(file_path) @definitions = Chekku::Fetcher.fetch_for_chekkufile file_path end |