summaryrefslogtreecommitdiff
path: root/app/models/instance_metadata.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/instance_metadata.rb')
-rw-r--r--app/models/instance_metadata.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/models/instance_metadata.rb b/app/models/instance_metadata.rb
new file mode 100644
index 00000000000..96622d0b1b3
--- /dev/null
+++ b/app/models/instance_metadata.rb
@@ -0,0 +1,10 @@
+# frozen_string_literal: true
+
+class InstanceMetadata
+ attr_reader :version, :revision
+
+ def initialize(version: Gitlab::VERSION, revision: Gitlab.revision)
+ @version = version
+ @revision = revision
+ end
+end