Sha256: 2c40f1c0d1b09a9d1e324f42c3902bc9719ef11e5516c2cdfd74d14bac46947f

Contents?: true

Size: 460 Bytes

Versions: 1

Compression:

Stored size: 460 Bytes

Contents

require 'json'

# encoding: utf-8
module SensuPluginsOpsgenie
  # This defines the version of the gem
  module Version
    MAJOR = 0
    MINOR = 0
    PATCH = 3

    VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')

    NAME   = 'sensu-plugins-opsgenie'
    BANNER = "#{NAME} v%s"

    module_function

    def version
      format(BANNER, VER_STRING)
    end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sensu-plugins-opsgenie-0.0.3 lib/sensu-plugins-opsgenie/version.rb