Sha256: 723f2fa6d85f7c6e9ab87d27831696fdeae0fe99b053207c2fa0f3995ef50d87

Contents?: true

Size: 1.14 KB

Versions: 1

Compression:

Stored size: 1.14 KB

Contents

require 'rabl'
require 'jbuilder'
require 'oj'
require 'typhoid'
require "axel/version"
require 'axel/controller_base'
require "axel/inspector"
require "axel/request_options"
require 'axel/uri'
require 'axel/controller_parameters'
require 'axel/cascadable_attribute'
require 'axel/application_extensions'
require 'axel/configurator'
require 'axel/payload/remote_error'

module Axel
  NotAuthorized = Class.new(StandardError)
  ForceSSL = Class.new(StandardError)

  def self.config(&block)
    yield _config
    _config.service_configs.each do |name, configuration|
      unless respond_to? name
        define_singleton_method(name) { configuration }
      end
    end
  end

  def self.service_configurator
    _config.services
  end

  def self.services
    _config.service_configs
  end

  def self.resources
    _config.resources
  end

  def self.environment
    _config.environment
  end

  def self.manual_environment_set?
    _config.manual_environment_set?
  end

  def self._config
    @config ||= Axel::Configurator.new
  end
end
require 'axel/application_helper'
require "axel/engine"
require 'axel/controller_helpers'
require 'axel/base_controller'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axel-0.0.1 lib/axel.rb