Created
April 28, 2015 15:21
-
-
Save plukevdh/e9eae10f45e218933569 to your computer and use it in GitHub Desktop.
scratch example for Roda plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Roda | |
module RodaPlugins | |
module Storage | |
def self.configure(app, options: {}) | |
app.opts[:redis] = Redis.new url: (options[:redis_url] || ENV['REDIS_URL']) | |
end | |
# ... | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment