class Slipsquare::Middleware::CheckConfiguration
Check if the client has set-up configuration yet.
Public Instance Methods
call(env)
click to toggle source
# File lib/slipsquare/middleware/check_configuration.rb, line 5 def call(env) config = env["config"] if !config || !config.data || !config.app_key || !config.secret_key say "You must run `slipsquare authorize` in order to connect to Dropbox", :red exit 1 end @app.call(env) end