Exception: Omnibus::MissingSoftware
- Defined in:
- lib/omnibus/exceptions.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ MissingSoftware
constructor
A new instance of MissingSoftware.
- #to_s ⇒ Object
Constructor Details
#initialize(name) ⇒ MissingSoftware
114 115 116 117 |
# File 'lib/omnibus/exceptions.rb', line 114 def initialize(name) @name = name @possible_paths = Omnibus.possible_paths_for(Config.software_dir) end |
Instance Method Details
#to_s ⇒ Object
119 120 121 122 123 124 125 |
# File 'lib/omnibus/exceptions.rb', line 119 def to_s "I could not find a software named `\#{@name}' in any of the software locations:\"\n\n\#{@possible_paths.map { |path| \" \#{path}\"}.join(\"\\n\")}\n" end |