Class: Evostream::Service
- Inherits:
-
Object
- Object
- Evostream::Service
- Defined in:
- lib/evostream/event/service.rb
Overview
DSL configuration for this gem
Class Method Summary collapse
- .configuration(&block) ⇒ Object
-
.environment ⇒ Object
Environment for this gem :test – Dont send command to EvoStream instance :development – Dont send command to EvoStream instance and write logs :production – Execute command HTTP.
- .web_root ⇒ Object
Class Method Details
.configuration(&block) ⇒ Object
12 13 14 |
# File 'lib/evostream/event/service.rb', line 12 def self.configuration(&block) block.call(self) end |
.environment ⇒ Object
Environment for this gem :test – Dont send command to EvoStream instance :development – Dont send command to EvoStream instance and write logs :production – Execute command HTTP
20 21 22 |
# File 'lib/evostream/event/service.rb', line 20 def self.environment @@environment || :test end |
.web_root ⇒ Object
24 25 26 |
# File 'lib/evostream/event/service.rb', line 24 def self.web_root @@web_root || '/var/www/html' end |