Class: Kapnismology::ApplicationInformation
- Inherits:
-
Object
- Object
- Kapnismology::ApplicationInformation
- Includes:
- Singleton
- Defined in:
- lib/kapnismology/application_information.rb
Overview
This class provides information about the running environment the smoketest is being executed under.
Constant Summary collapse
- GIT_COMMAND =
"git rev-parse --short HEAD 2>/dev/null".freeze
- ECS_CONTAINER_METADATA_FILE =
ENV["ECS_CONTAINER_METADATA_FILE"].freeze
- KUBERNETES_ANNOTATIONS_FILE =
"/etc/podinfo/annotations".freeze
- INFO_UNKNOWN =
"".freeze
Instance Method Summary collapse
Instance Method Details
#codebase_revision ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/kapnismology/application_information.rb', line 15 def codebase_revision @codebase_revision ||= begin latest_commit_info[0...7] rescue Errno::ENOENT, StandardError INFO_UNKNOWN end end |