Module: SensuPluginsVmstats::Version

Defined in:
lib/sensu-plugins-vmstats/version.rb

Overview

This defines the version of the gem

Constant Summary collapse

MAJOR =
0
MINOR =
0
PATCH =
1
VER_STRING =
[MAJOR, MINOR, PATCH].compact.join('.')
NAME =
'sensu-plugins-vmstats'
"#{NAME} v%s"

Class Method Summary collapse

Class Method Details

.json_versionObject



22
23
24
25
26
# File 'lib/sensu-plugins-vmstats/version.rb', line 22

def json_version
  {
    'version' => VER_STRING
  }.to_json
end

.versionObject



18
19
20
# File 'lib/sensu-plugins-vmstats/version.rb', line 18

def version
  format(BANNER, VER_STRING)
end