summaryrefslogtreecommitdiff
path: root/lib/gitlab/slash_commands/presenters/deploy.rb
blob: 7d852eb1f9a7ebb8b0174e76df9439285be52ced (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

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