Class: Gitlab::SlashCommands::Presenters::Deploy

Inherits:
Base
  • Object
show all
Defined in:
lib/gitlab/slash_commands/presenters/deploy.rb

Instance Method Summary collapse

Methods inherited from Base

#display_errors, #initialize

Methods included from Routing

add_helpers, includes_helpers, redirect_legacy_paths, url_helpers

Constructor Details

This class inherits a constructor from Gitlab::SlashCommands::Presenters::Base

Instance Method Details

#action_not_foundObject


14
15
16
# File 'lib/gitlab/slash_commands/presenters/deploy.rb', line 14

def action_not_found
  ephemeral_response(text: "Couldn't find a deployment manual action.")
end

#present(from, to) ⇒ Object


7
8
9
10
11
12
# File 'lib/gitlab/slash_commands/presenters/deploy.rb', line 7

def present(from, to)
  message = "Deployment started from #{from} to #{to}. " \
            "[Follow its progress](#{resource_url})."

  in_channel_response(text: message)
end