Welcome to mirror list, hosted at ThFree Co, Russian Federation.

deploy.rb « presenters « slash_commands « gitlab « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b72586394bccb76b3188d4254de42feac3e31860 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 action.")
        end
      end
    end
  end
end