Exception: Omnibus::UnknownPlatform

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

Overview

Raised when Omnibus encounters a platform it does not know how to build/check/handle.

Instance Method Summary collapse

Constructor Details

#initialize(platform) ⇒ UnknownPlatform

Returns a new instance of UnknownPlatform.



180
181
182
# File 'lib/omnibus/exceptions.rb', line 180

def initialize(platform)
  @platform = platform
end

Instance Method Details

#to_sObject



184
185
186
187
188
189
# File 'lib/omnibus/exceptions.rb', line 184

def to_s
  <<~EOH
    Unknown platform `#{@platform}'!
    I do not know how to proceed!"
  EOH
end