Sha256: eaa396450b6b9694d10dcec34063bb5d22ffb253813fe2966faeec41f0fb222e

Contents?: true

Size: 670 Bytes

Versions: 37

Compression:

Stored size: 670 Bytes

Contents

# frozen_string_literal: true

# :reek:Attribute
# :reek:ClassVariable

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
    # :development  -- Dont send command to EvoStream instance and write logs
    # :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

37 entries across 37 versions & 1 rubygems

Version Path
evostream-event-2.0.3 lib/evostream/event/service.rb
evostream-event-2.0.3.pre.1265906291 lib/evostream/event/service.rb
evostream-event-2.0.3.pre.1265756691 lib/evostream/event/service.rb
evostream-event-2.0.3.pre.1265752332 lib/evostream/event/service.rb
evostream-event-2.0.2 lib/evostream/event/service.rb
evostream-event-2.0.2.pre.994185738 lib/evostream/event/service.rb
evostream-event-2.0.0.pre.994170151 lib/evostream/event/service.rb
evostream-event-2.0.0.pre.994165179 lib/evostream/event/service.rb
evostream-event-2.0.0.pre.994159616 lib/evostream/event/service.rb
evostream-event-2.0.0.pre.856454391 lib/evostream/event/service.rb
evostream-event-2.0.0.pre.856447460 lib/evostream/event/service.rb
evostream-event-2.0.0.pre.856441003 lib/evostream/event/service.rb
evostream-event-2.0.0.pre.816370746 lib/evostream/event/service.rb
evostream-event-2.0.0.pre.809444619 lib/evostream/event/service.rb
evostream-event-1.0.3 lib/evostream/event/service.rb
evostream-event-1.0.3.pre.95 lib/evostream/event/service.rb
evostream-event-1.0.3.pre.93 lib/evostream/event/service.rb
evostream-event-1.0.3.pre.91 lib/evostream/event/service.rb
evostream-event-1.0.3.pre.83 lib/evostream/event/service.rb
evostream-event-1.0.2 lib/evostream/event/service.rb