class Omnibus::MissingProject

Public Class Methods

new(name) click to toggle source
# File lib/omnibus/exceptions.rb, line 99
def initialize(name)
  @name = name
  @possible_paths = Omnibus.possible_paths_for(Config.project_dir)
end

Public Instance Methods

to_s() click to toggle source
# File lib/omnibus/exceptions.rb, line 104
    def to_s
      <<~EOH
        I could not find a project named `#{@name}' in any of the project locations:"

        #{@possible_paths.map { |path| "    #{path}" }.join("\n")}
      EOH
    end