Exception: Teaspoon::UnknownFramework
- Defined in:
- lib/teaspoon/exceptions.rb
Overview
loading / configuration errors
Instance Method Summary collapse
-
#initialize(msg_or_options) ⇒ UnknownFramework
constructor
A new instance of UnknownFramework.
Constructor Details
#initialize(msg_or_options) ⇒ UnknownFramework
Returns a new instance of UnknownFramework.
28 29 30 31 32 33 34 35 |
# File 'lib/teaspoon/exceptions.rb', line 28 def initialize() super(() do || msg = "Unknown framework: expected \"#{[:name]}\" to be a registered framework. Available frameworks are #{[:available]}." if [:available].blank? msg + " Do you need to update your Gemfile to use the teaspoon-#{[:name]} gem? If you are upgrading, please see https://github.com/jejacks0n/teaspoon/blob/master/CHANGELOG.md" end end) end |