class RubyYacht::ServerType
This class represents a type of server that the user can configure.
An server type corresponds to a major server framework, like Ruby on Rails. Server types are defined by plugins, which also provide the logic for installing and running the server.
You can configure this with RubyYacht::ServerType::DSL
Attributes
The docker image that we use as the source for the server images.
The type of container that this should be applied to.
The name of the type.
The attributes that we define on the project DSL
once this server type has been loaded.
Each entry will be a hash with a key for ‘name`, and optionally a key for `default` and `required`. These values will be given to the `add_attribute` method in the project DSL
.
The attribute names will be prefixed with the server type’s name. For instance, if the ‘rails` server type provides an `environment` attribute, it will be called `rails_environment` on the project’s DSL
. This prevents conflicts with attributes from other plugins.
The attributes that we define on the server DSL
once this server type has been loaded.
Each entry will be a hash with a key for ‘name`, and optionally a key for `default` and `required`. These values will be given to the `add_attribute` method in the project DSL
.
The attributes will only be defined on servers with this server type.
The attribute names will be prefixed with the server type’s name. For instance, if the ‘rails` server type provides an `environment` attribute, it will be called `rails_environment` on the server’s DSL
. This prevents conflicts with attributes from other plugins.
The default values for the servers with this server type.
Each entry will be a hash where the keys are the names of attributes, and the values are the default values.