module Startback
Provides a reusable backend framework for backend components written in ruby.
The framework installs conventions regarding:
-
The exposition of web service APIs (Framework::Api, on top of Sinatra)
-
Operations (Framework::Operation)
-
Error handling (Framework::Errors) and their handling in web APIs (based on Rack::Robustness)
-
General code support (Framework::Support modules & classes).
Please refer to the documentation of those main abstractions for details.
Constants
- LOGGER
Logger instance to use for the application
- VERSION
Public Class Methods
_!(path)
click to toggle source
Simply checks that a path exists of raise an error
# File lib/startback.rb, line 25 def self._!(path) Path(path).tap do |p| raise "Missing #{p.basename}." unless p.exists? end end