gitlab-org--gitlab-foss/lib/gitlab/slash_commands/presenters/deploy.rb

21 lines
495 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2017-01-19 03:22:09 -05:00
module Gitlab
module SlashCommands
2017-01-19 03:22:09 -05:00
module Presenters
class Deploy < Presenters::Base
def present(from, to)
message = "Deployment started from #{from} to #{to}. " \
"[Follow its progress](#{resource_url})."
2017-01-19 03:22:09 -05:00
in_channel_response(text: message)
end
def action_not_found
ephemeral_response(text: "Couldn't find a deployment manual action.")
2017-01-19 03:22:09 -05:00
end
end
end
end
end