Class: SampleCoreApi
- Inherits:
-
Object
- Object
- SampleCoreApi
- Extended by:
- ApplicationConfiguration
- Defined in:
- lib/sample_core_api.rb
Overview
Dir[“#File.dirname(__FILE__)/*/.rb”].each {|file| require file }
Instance Method Summary collapse
-
#initialize(config) ⇒ SampleCoreApi
constructor
A new instance of SampleCoreApi.
- #run_rest_services ⇒ Object
- #start ⇒ Object
- #stop ⇒ Object
Methods included from ApplicationConfiguration
Constructor Details
#initialize(config) ⇒ SampleCoreApi
Returns a new instance of SampleCoreApi.
14 15 16 |
# File 'lib/sample_core_api.rb', line 14 def initialize(config) @config = config end |
Instance Method Details
#run_rest_services ⇒ Object
18 19 20 |
# File 'lib/sample_core_api.rb', line 18 def run_rest_services RestService.run! end |
#start ⇒ Object
22 23 24 25 26 |
# File 'lib/sample_core_api.rb', line 22 def start Container["consulService"].start Container["cassandraService"].start run_rest_services end |
#stop ⇒ Object
28 29 30 31 |
# File 'lib/sample_core_api.rb', line 28 def stop consulService.stop cassandraService.stop end |