Sha256: 5b95a13c436d780853d0ae31e8b8d0f360d7e424df0a6ad6b0c675a0f99ad234

Contents?: true

Size: 474 Bytes

Versions: 1

Compression:

Stored size: 474 Bytes

Contents

require 'json'

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

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

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

    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-1.0.0 lib/sensu-plugins-opsgenie/version.rb