class RubyYacht::WebServer
This class models a web server that’s part of the local system.
See RubyYacht::WebServer::DSL
for information on configuring the server.
Attributes
domain[RW]
The domain that this web server listens on.
name[RW]
The name of the server
port[RW]
The port that this web server listens on.
server_type[RW]
The name of the web server plugin for this server.
Public Instance Methods
container_name()
click to toggle source
This method gets the name of the image / container that this server will run in.
# File lib/ruby_yacht/dsl/web_server.rb, line 25 def container_name project = self.project return "#{project.system_prefix}-#{self.name}" end
project()
click to toggle source
The project that includes this web server.
# File lib/ruby_yacht/dsl/web_server.rb, line 19 def project RubyYacht.configuration.projects.find { |project| project.web_servers.include?(self) } end