debian-mirror-gitlab/lib/gitlab/slash_commands/presenters/deploy.rb
2019-02-15 15:39:39 +05:30

20 lines
495 B
Ruby

# 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