Sha256: 720b7b77a3e82dbcf1fdf5a03a33474bf851500fb51cd4b199c675edfdecec92

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

require 'dependor'
require 'dependor/shorty'

require 'goliath'
require 'yaml'

module Rhinestone
  autoload :App,                    'rhinestone/app'
  autoload :Cache,                  'rhinestone/cache'
  autoload :Config,                 'rhinestone/config'
  autoload :FilesystemCacheBackend, 'rhinestone/filesystem_cache_backend'
  autoload :HeaderFilter,           'rhinestone/header_filter'
  autoload :Injector,               'rhinestone/injector'
  autoload :InMemoryCacheBackend,   'rhinestone/in_memory_cache_backend'
  autoload :HttpClient,             'rhinestone/http_client'
  autoload :Later,                  'rhinestone/later'
  autoload :Response,               'rhinestone/response'
  autoload :Server,                 'rhinestone/server'
  autoload :VERSION,                'rhinestone/version'

  def self.server
    Injector.new(config).server
  end

  def self.config
    Rhinestone::Config.new(ARGV).to_h
  end

  def self.run!
    Goliath::Application.app_class = 'Rhinestone::App'
    Goliath::Application.run!
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rhinestone-0.0.2 lib/rhinestone.rb