Exception: GhostAdapter::IncompatibleVersion

Inherits:
StandardError
  • Object
show all
Defined in:
lib/ghost_adapter/version_checker.rb

Instance Method Summary collapse

Constructor Details

#initialize(version = nil) ⇒ IncompatibleVersion

Returns a new instance of IncompatibleVersion.



5
6
7
8
9
10
11
# File 'lib/ghost_adapter/version_checker.rb', line 5

def initialize(version = nil)
  message = %(
#{version.nil? ? 'gh-ost not installed' : "gh-ost incompatible version #{version} installed."}
please install version: [#{VersionChecker::ALLOWED_RANGE}]
for latest release, visit: https://github.com/github/gh-ost/releases/latest)
  super(message)
end