Module: Skypager
- Defined in:
- lib/skypager/router.rb,
lib/skypager.rb,
lib/skypager/cli.rb,
lib/skypager/site.rb,
lib/skypager/proxy.rb,
lib/skypager/version.rb,
lib/skypager/protector.rb,
lib/skypager/configuration.rb,
lib/skypager/builder/server.rb
Overview
Skypager::Builder::Server
A Rack mountable server which can receive Webhook notifications from services like Dropbox, Google Drive, or our own Rest APIs and trigger builds for the various Skypager::Site that are referenced in the Skypager::Site.directory
Currently, the Builder::Server just finds sites and marks them as requiring a build. Some external process will poll the sites directory to find the sites which require a build, and run that for us. (Cron, perhaps)
Defined Under Namespace
Modules: Cli
Classes: Builder, Configuration, Protector, Proxy, Router, Site
Constant Summary
collapse
- VERSION =
GVB.version rescue '2.1.8.error'
Class Method Summary
collapse
Class Method Details
.lib ⇒ Object
49
50
51
|
# File 'lib/skypager.rb', line 49
def self.lib
Pathname(File.dirname(__FILE__))
end
|
.protector(options = {}) ⇒ Object
19
20
21
22
23
|
# File 'lib/skypager.rb', line 19
def self.protector(options={})
require 'skypager/protector'
require 'pry'
Skypager::Protector.new(options)
end
|
.proxy(options = {}) ⇒ Object
25
26
27
28
29
30
31
32
33
34
35
|
# File 'lib/skypager.rb', line 25
def self.proxy(options={})
if options.is_a?(String)
options = {bucket: options}
end
require 'rack-proxy' unless defined?(Rack::Proxy)
require 'skypager/proxy' unless defined?(Skypager::Proxy)
@_proxies ||= {}
@_proxies[options.hash] ||= Skypager::Proxy.new(options)
end
|
.router(app, options = {}) ⇒ Object
14
15
16
17
|
# File 'lib/skypager.rb', line 14
def self.router(app, options={})
require 'skypager/router'
@router ||= Skypager::Router.new(app, options)
end
|