Sha256: d64e13341d91f8be3150fdd0e53aedce8b7a3d22f93edfbbfb3b7882fb361cb7

Contents?: true

Size: 569 Bytes

Versions: 3

Compression:

Stored size: 569 Bytes

Contents

# frozen_string_literal: true

# :reek:Attribute

module Evostream
  # DSL configuration for this gem
  class Service
    mattr_accessor :web_root, :uri_in, :uri_out, :name, :model, :model_id,
                   :environment

    def self.configuration(&block)
      block.call(self)
    end

    # Environment for this gem
    # :test         -- Dont send command to EvoStream instance
    # :production   -- Execute command HTTP
    def self.environment
      @@environment || :test
    end

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
evostream-event-0.2.6 lib/evostream/event/service.rb
evostream-event-0.2.6.pre.41 lib/evostream/event/service.rb
evostream-event-0.2.6.pre.39 lib/evostream/event/service.rb