Sha256: 26ce5992c74cc4c4d88a54719c777cc4ac9cb2c6c1068a41534e473f7da4ae89

Contents?: true

Size: 1.15 KB

Versions: 1

Compression:

Stored size: 1.15 KB

Contents

# encoding: utf-8
module Cloud66
	module Utils
		class Version

			##
			# Change the MAJOR, MINOR and PATCH constants below
			# to adjust the version of the Cloud66 Agent gem
			#
			# MAJOR:
			#  Defines the major version
			# MINOR:
			#  Defines the minor version
			# PATCH:
			#  Defines the patch version
			MAJOR, MINOR, PATCH = 1, 0, 7

			#ie. PRERELEASE_MODIFIER = 'beta1'
			PRERELEASE_MODIFIER = nil

			##
			# Returns the major version ( big release based off of multiple minor releases )
			def self.major
				MAJOR
			end

			##
			# Returns the minor version ( small release based off of multiple patches )
			def self.minor
				MINOR
			end

			##
			# Returns the patch version ( updates, features and (crucial) bug fixes )
			def self.patch
				PATCH
			end

			##
			# Returns the prerelease modifier ( not quite ready for public consumption )
			def self.prerelease_modifier
				PRERELEASE_MODIFIER
			end

			##
			# Returns the current version of the Backup gem ( qualified for the gemspec )
			def self.current
				prerelease_modifier.nil? ? "#{major}.#{minor}.#{patch}" : "#{major}.#{minor}.#{patch}.#{prerelease_modifier}"
			end

		end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cloud66_agent-1.0.7 lib/cloud66_agent/utils/version.rb