Skip to content

Instantly share code, notes, and snippets.

@plukevdh
Created April 28, 2015 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save plukevdh/e9eae10f45e218933569 to your computer and use it in GitHub Desktop.
Save plukevdh/e9eae10f45e218933569 to your computer and use it in GitHub Desktop.
scratch example for Roda plugin
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