summaryrefslogtreecommitdiff
path: root/lib/gitlab/chat_commands/help.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/chat_commands/help.rb')
-rw-r--r--lib/gitlab/chat_commands/help.rb28
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/gitlab/chat_commands/help.rb b/lib/gitlab/chat_commands/help.rb
deleted file mode 100644
index 6c0e4d304a4..00000000000
--- a/lib/gitlab/chat_commands/help.rb
+++ /dev/null
@@ -1,28 +0,0 @@
-module Gitlab
- module ChatCommands
- class Help < BaseCommand
- # This class has to be used last, as it always matches. It has to match
- # because other commands were not triggered and we want to show the help
- # command
- def self.match(_text)
- true
- end
-
- def self.help_message
- 'help'
- end
-
- def self.allowed?(_project, _user)
- true
- end
-
- def execute(commands, text)
- Gitlab::ChatCommands::Presenters::Help.new(commands).present(trigger, text)
- end
-
- def trigger
- params[:command]
- end
- end
- end
-end