Class: Potassium::NodeVersionEnsurer

Inherits:
Object
  • Object
show all
Defined in:
lib/potassium/node_version_ensurer.rb

Instance Method Summary collapse

Instance Method Details

#ensure!Object

Raises:



3
4
5
6
# File 'lib/potassium/node_version_ensurer.rb', line 3

def ensure!
  raise VersionError.new(install_message) if installed_node_version.nil?
  raise VersionError.new(update_message) if Potassium::NODE_VERSION != installed_node_version
end