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

19 lines
457 B
Ruby
Raw Normal View History

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 action.")
2017-01-19 03:22:09 -05:00
end
end
end
end
end