| Class | GH::Stack |
| In: |
lib/gh/stack.rb
|
| Parent: | Object |
Public: Exposes DSL for stacking wrappers.
Examples
api = GH::Stack.build do
use GH::Cache, cache: Rails.cache
use GH::Normalizer
use GH::Remote, username: "admin", password: "admin"
end
| options | [R] |
Public: Generates wrapper instances for stack configuration.
options - Hash of options that will be passed to all layers upon initialization.
Returns top most Wrapper instance.
Public: Adds a new layer to the stack.
Layer will be wrapped by layers already on the stack.