Class: DTK::Common::ModuleParser
- Inherits:
-
Object
- Object
- DTK::Common::ModuleParser
- Defined in:
- lib/module_parser/module_parser.rb
Constant Summary collapse
- MODULE_REFS_FILE =
'module_refs.yaml'
Instance Method Summary collapse
- #calculate! ⇒ Object
-
#errors ⇒ Object
Errors will return latest calculated changes.
-
#initialize(module_name, module_namespace, repos_path, module_type = :service_module, is_server = false, dtk_username = nil) ⇒ ModuleParser
constructor
A new instance of ModuleParser.
Constructor Details
#initialize(module_name, module_namespace, repos_path, module_type = :service_module, is_server = false, dtk_username = nil) ⇒ ModuleParser
Returns a new instance of ModuleParser.
27 28 29 30 31 32 33 34 35 36 |
# File 'lib/module_parser/module_parser.rb', line 27 def initialize(module_name, module_namespace, repos_path, module_type=:service_module, is_server=false, dtk_username=nil) @module_name = module_name @module_namespace = module_namespace @module_type = module_type @repos_path = repos_path @is_server = is_server @dtk_username = dtk_username @dependency_map = nil @errors = [] end |
Instance Method Details
#calculate! ⇒ Object
38 39 40 41 |
# File 'lib/module_parser/module_parser.rb', line 38 def calculate!() @dependency_map = recursive_calculation(@module_name, @module_namespace, @module_type) @dependency_map end |
#errors ⇒ Object
Errors will return latest calculated changes
46 47 48 49 |
# File 'lib/module_parser/module_parser.rb', line 46 def errors() @dependency_map ||= recursive_calculation(@module_name, @module_namespace, @module_type) @errors end |