2018-12-23 12:14:25 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
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
|