Class: ServiceScan
Overview
This class loads ruby files and initializes the services specified inside of them
Instance Attribute Summary collapse
-
#base_dirs ⇒ Object
readonly
Returns the value of attribute base_dirs.
Instance Method Summary collapse
-
#initialize(base_dirs = ["services"]) ⇒ ServiceScan
constructor
A new instance of ServiceScan.
- #run! ⇒ Object
Constructor Details
#initialize(base_dirs = ["services"]) ⇒ ServiceScan
Returns a new instance of ServiceScan.
9 10 11 |
# File 'lib/didit/service_scan.rb', line 9 def initialize(base_dirs = ["services"]) @base_dirs = base_dirs end |
Instance Attribute Details
#base_dirs ⇒ Object (readonly)
Returns the value of attribute base_dirs.
7 8 9 |
# File 'lib/didit/service_scan.rb', line 7 def base_dirs @base_dirs end |
Instance Method Details
#run! ⇒ Object
13 14 15 16 17 18 |
# File 'lib/didit/service_scan.rb', line 13 def run! perform_initial_scan inject_single inject_lists post_construct_triggers end |