Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/atlassian/jira_connect.rb')
-rw-r--r--lib/atlassian/jira_connect.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/atlassian/jira_connect.rb b/lib/atlassian/jira_connect.rb
new file mode 100644
index 00000000000..7f693eff59b
--- /dev/null
+++ b/lib/atlassian/jira_connect.rb
@@ -0,0 +1,21 @@
+# frozen_string_literal: true
+
+module Atlassian
+ module JiraConnect
+ class << self
+ def app_name
+ "GitLab for Jira (#{gitlab_host})"
+ end
+
+ def app_key
+ "gitlab-jira-connect-#{gitlab_host}"
+ end
+
+ private
+
+ def gitlab_host
+ Gitlab.config.gitlab.host
+ end
+ end
+ end
+end