class Gitlab::QA::Component::MailHog
Constants
- DOCKER_IMAGE
- DOCKER_IMAGE_TAG
Public Instance Methods
instance()
click to toggle source
Calls superclass method
Gitlab::QA::Component::Base#instance
# File lib/gitlab/qa/component/mail_hog.rb, line 15 def instance raise 'Please provide a block!' unless block_given? super end
name()
click to toggle source
# File lib/gitlab/qa/component/mail_hog.rb, line 11 def name @name ||= "mailhog" end
set_mailhog_hostname()
click to toggle source
# File lib/gitlab/qa/component/mail_hog.rb, line 32 def set_mailhog_hostname ::Gitlab::QA::Runtime::Env.mailhog_hostname = hostname end
start()
click to toggle source
# File lib/gitlab/qa/component/mail_hog.rb, line 21 def start docker.run(image: image, tag: tag) do |command| command << '-d ' command << "--name #{name}" command << "--net #{network}" command << "--hostname #{hostname}" command << "--publish 1025:1025" command << "--publish 8025:8025" end end