Exception: Omnibus::NoPackageFile

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

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ NoPackageFile

Returns a new instance of NoPackageFile.



21
22
23
# File 'lib/omnibus/exceptions.rb', line 21

def initialize(path)
  @path = path
end

Instance Method Details

#to_sObject



25
26
27
28
29
30
31
# File 'lib/omnibus/exceptions.rb', line 25

def to_s
  <<~EOH
    Could not locate or access the package at the given path:

        #{@path}
  EOH
end