Class: Evostream::Service

Inherits:
Object
  • Object
show all
Defined in:
lib/evostream/event/service.rb

Overview

DSL configuration for this gem

Class Method Summary collapse

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

.environmentObject

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_rootObject



24
25
26
# File 'lib/evostream/event/service.rb', line 24

def self.web_root
  @@web_root || '/var/www/html'
end