Exception: Teaspoon::UnknownFramework

Inherits:
Error
  • Object
show all
Defined in:
lib/teaspoon/exceptions.rb

Overview

loading / configuration errors

Instance Method Summary collapse

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(msg_or_options)
  super(build_message(msg_or_options) do |options|
    msg = "Unknown framework: expected \"#{options[:name]}\" to be a registered framework. Available frameworks are #{options[:available]}."
    if options[:available].blank?
      msg + " Do you need to update your Gemfile to use the teaspoon-#{options[:name]} gem? If you are upgrading, please see https://github.com/jejacks0n/teaspoon/blob/master/CHANGELOG.md"
    end
  end)
end