module Expedite

Constants

VERSION

Public Class Methods

app() click to toggle source
# File lib/expedite/application.rb, line 20
def self.app
  @app
end
app=(app) click to toggle source
# File lib/expedite/application.rb, line 17
def self.app=(app)
  @app = app
end
failsafe_thread() { || ... } click to toggle source
# File lib/expedite/failsafe_thread.rb, line 6
def failsafe_thread
  Thread.new {
    begin
      yield
    rescue
    end
  }
end
v(variant) click to toggle source

Alias for self.variant

# File lib/expedite.rb, line 15
def self.v(variant)
  self.variant(variant)
end
variant(variant) click to toggle source

Returns a client to dispatch actions to the specified variant

# File lib/expedite.rb, line 6
def self.variant(variant)
  @clients ||= Hash.new do |h, k|
    Client.new(env: Env.new, variant: variant)
  end
  @clients[variant]
end