Module: Mcrain::ContainerController::ClassMethods
- Defined in:
- lib/mcrain/container_controller.rb
Instance Attribute Summary collapse
-
#port ⇒ Object
Returns the value of attribute port.
- #server_name ⇒ Object
Instance Method Summary collapse
Instance Attribute Details
#port ⇒ Object
Returns the value of attribute port.
19 20 21 |
# File 'lib/mcrain/container_controller.rb', line 19 def port @port end |
#server_name ⇒ Object
11 12 13 |
# File 'lib/mcrain/container_controller.rb', line 11 def server_name @server_name ||= self.name.split(/::/).last.underscore.to_sym end |
Instance Method Details
#container_image ⇒ Object
15 16 17 |
# File 'lib/mcrain/container_controller.rb', line 15 def container_image Mcrain.configuration.images[server_name] end |