Class: Slipsquare::Middleware::CheckConfiguration
- Defined in:
- lib/slipsquare/middleware/check_configuration.rb
Overview
Check if the client has set-up configuration yet.
Constant Summary
Constants inherited from Base
Base::CLEAR, Base::GREEN, Base::RED, Base::YELLOW
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Slipsquare::Middleware::Base
Instance Method Details
#call(env) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# 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 |