diff options
Diffstat (limited to 'lib/gitlab/slash_commands/presenters/deploy.rb')
-rw-r--r-- | lib/gitlab/slash_commands/presenters/deploy.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/gitlab/slash_commands/presenters/deploy.rb b/lib/gitlab/slash_commands/presenters/deploy.rb new file mode 100644 index 00000000000..ebae0f57f9b --- /dev/null +++ b/lib/gitlab/slash_commands/presenters/deploy.rb @@ -0,0 +1,18 @@ +module Gitlab + module SlashCommands + module Presenters + class Deploy < Presenters::Base + def present(from, to) + message = "Deployment started from #{from} to #{to}. " \ + "[Follow its progress](#{resource_url})." + + in_channel_response(text: message) + end + + def action_not_found + ephemeral_response(text: "Couldn't find a deployment manual action.") + end + end + end + end +end |