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/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, Proxy, Router, Site
Constant Summary collapse
- VERSION =
"0.2.0"
Class Method Summary collapse
- .config ⇒ Object
- .lib ⇒ Object
- .proxy(options = {}) ⇒ Object
- .root ⇒ Object
- .router(app, options = {}) ⇒ Object
- .sites ⇒ Object
Class Method Details
.config ⇒ Object
30 31 32 |
# File 'lib/skypager.rb', line 30 def self.config Skypager::Configuration.instance end |
.lib ⇒ Object
42 43 44 |
# File 'lib/skypager.rb', line 42 def self.lib Pathname(File.dirname(__FILE__)) end |
.proxy(options = {}) ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/skypager.rb', line 18 def self.proxy(={}) if .is_a?(String) = {bucket: } end require 'rack-proxy' unless defined?(Rack::Proxy) require 'skypager/proxy' unless defined?(Skypager::Proxy) @_proxies ||= {} @_proxies[.hash] ||= Skypager::Proxy.new() end |
.root ⇒ Object
38 39 40 |
# File 'lib/skypager.rb', line 38 def self.root Skypager::Configuration.skypager_root end |