Sha256: 42e41fa3e14d2b24070610c28f895e5416fc9bb6999f35cf807354ca8e93fc85

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 = 2

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