Class: Gitlab::SlashCommands::ApplicationHelp

Inherits:
BaseCommand
  • Object
show all
Defined in:
lib/gitlab/slash_commands/application_help.rb

Constant Summary

Constants inherited from BaseCommand

BaseCommand::QUERY_LIMIT

Instance Attribute Summary

Attributes inherited from BaseCommand

#chat_name, #current_user, #params, #project

Instance Method Summary collapse

Methods inherited from BaseCommand

allowed?, available?, can?, #collection, help_message, match

Constructor Details

#initialize(project, params) ⇒ ApplicationHelp

Returns a new instance of ApplicationHelp.



6
7
8
9
# File 'lib/gitlab/slash_commands/application_help.rb', line 6

def initialize(project, params)
  @project = project
  @params = params
end

Instance Method Details

#executeObject



11
12
13
14
15
# File 'lib/gitlab/slash_commands/application_help.rb', line 11

def execute
  Gitlab::SlashCommands::Presenters::Help
    .new(project, commands, params)
    .present(trigger, params[:text])
end