Module: Deployed

Defined in:
lib/deployed_version.rb

Overview

rubocop:todo Style/Documentation

Defined Under Namespace

Classes: RepoData

Constant Summary collapse

ENVIRONMENT =
Rails.env
REPO_DATA =
RepoData.new
VERSION_ID =
REPO_DATA.version_label
APP_NAME =
'Limber'
RELEASE_NAME =
REPO_DATA.release.presence || 'LOCAL'
MAJOR =
REPO_DATA.major
MINOR =
REPO_DATA.minor
PATCH =
REPO_DATA.patch
EXTRA =
REPO_DATA.extra
BRANCH =
REPO_DATA.label.presence || 'unknown_branch'
COMMIT =
REPO_DATA.revision.presence || 'unknown_revision'
ABBREV_COMMIT =
REPO_DATA.revision_short.presence || 'unknown_revision'
VERSION_STRING =
"#{APP_NAME} #{VERSION_ID} [#{ENVIRONMENT}]".freeze
VERSION_COMMIT =
"#{BRANCH}@#{ABBREV_COMMIT}".freeze
REPO_URL =
REPO_DATA.release_url.presence || '#'
HOSTNAME =
Socket.gethostname
DETAILS =

rubocop:todo Style/OpenStructUse

OpenStruct.new(name: nil, version: VERSION_ID, environment: ENVIRONMENT)