Module: Deployed

Defined in:
lib/deployed_version.rb

Defined Under Namespace

Classes: RepoData

Constant Summary collapse

ENVIRONMENT =
Rails.env
REPO_DATA =
RepoData.new
VERSION_ID =
REPO_DATA.version_label
APP_NAME =
'Sequencescape'
RELEASE_NAME =
REPO_DATA.release.presence || 'LOCAL'
MAJOR =
REPO_DATA.major
MINOR =
REPO_DATA.minor
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}]"
VERSION_COMMIT =
"#{BRANCH}@#{ABBREV_COMMIT}"
REPO_URL =
REPO_DATA.release_url.presence || '#'
HOSTNAME =
Socket.gethostname
DETAILS =
OpenStruct.new(
  name: APP_NAME,
  version: VERSION_ID,
  environment: ENVIRONMENT
)