Module: Rhinestone

Defined in:
lib/rhinestone.rb,
lib/rhinestone/app.rb,
lib/rhinestone/cache.rb,
lib/rhinestone/later.rb,
lib/rhinestone/config.rb,
lib/rhinestone/server.rb,
lib/rhinestone/version.rb,
lib/rhinestone/injector.rb,
lib/rhinestone/response.rb,
lib/rhinestone/http_client.rb,
lib/rhinestone/header_filter.rb,
lib/rhinestone/in_memory_cache_backend.rb,
lib/rhinestone/filesystem_cache_backend.rb

Defined Under Namespace

Classes: App, Cache, Config, FilesystemCacheBackend, HeaderFilter, HttpClient, InMemoryCacheBackend, Injector, Later, Response, Server

Constant Summary collapse

VERSION =
"0.0.2"

Class Method Summary collapse

Class Method Details

.configObject



25
26
27
# File 'lib/rhinestone.rb', line 25

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

.run!Object



29
30
31
32
# File 'lib/rhinestone.rb', line 29

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

.serverObject



21
22
23
# File 'lib/rhinestone.rb', line 21

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