Class: ServiceScan

Inherits:
Object show all
Defined in:
lib/didit/service_scan.rb

Overview

This class loads ruby files and initializes the services specified inside of them

Instance Attribute Summary collapse

Instance Method Summary collapse

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_dirsObject (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