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:
authorJames Fargher <proglottis@gmail.com>2019-02-21 00:29:48 +0300
committerRobert Speicher <rspeicher@gmail.com>2019-02-21 00:29:48 +0300
commit2d19b1adef1fd880c3d49f307ff8d5317d31d94a (patch)
tree5c16a7ffb65801b8dd7ace152d0a9e0edee358ac /lib/gitlab/chat.rb
parentee0a007f8f47ba1c8117f2e9130663461181a145 (diff)
Move ChatOps to Core
ChatOps used to be in the Ultimate tier.
Diffstat (limited to 'lib/gitlab/chat.rb')
-rw-r--r--lib/gitlab/chat.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/gitlab/chat.rb b/lib/gitlab/chat.rb
new file mode 100644
index 00000000000..23d4fb36b66
--- /dev/null
+++ b/lib/gitlab/chat.rb
@@ -0,0 +1,10 @@
+# frozen_string_literal: true
+
+module Gitlab
+ module Chat
+ # Returns `true` if Chatops is available for the current instance.
+ def self.available?
+ ::Feature.enabled?(:chatops, default_enabled: true)
+ end
+ end
+end