Module: Diffend::LatestVersion

Defined in:
lib/diffend/latest_version.rb

Overview

Verify if we are running latest version of the plugin

Class Method Summary collapse

Class Method Details

.call(config) ⇒ Object

Verify if we are running latest version of the plugin

Parameters:



10
11
12
13
14
15
16
17
# File 'lib/diffend/latest_version.rb', line 10

def call(config)
  return if config.development?
  return if installed_version == Diffend::VERSION

  print_message(config, installed_version)

  exit 2
end