Class: Kamal::Configuration::Volume
- Inherits:
-
Object
- Object
- Kamal::Configuration::Volume
- Defined in:
- lib/kamal/configuration/volume.rb
Instance Attribute Summary collapse
-
#container_path ⇒ Object
readonly
Returns the value of attribute container_path.
-
#host_path ⇒ Object
readonly
Returns the value of attribute host_path.
Instance Method Summary collapse
- #docker_args ⇒ Object
-
#initialize(host_path:, container_path:) ⇒ Volume
constructor
A new instance of Volume.
Constructor Details
#initialize(host_path:, container_path:) ⇒ Volume
Returns a new instance of Volume.
5 6 7 8 |
# File 'lib/kamal/configuration/volume.rb', line 5 def initialize(host_path:, container_path:) @host_path = host_path @container_path = container_path end |
Instance Attribute Details
#container_path ⇒ Object (readonly)
Returns the value of attribute container_path.
2 3 4 |
# File 'lib/kamal/configuration/volume.rb', line 2 def container_path @container_path end |
#host_path ⇒ Object (readonly)
Returns the value of attribute host_path.
2 3 4 |
# File 'lib/kamal/configuration/volume.rb', line 2 def host_path @host_path end |
Instance Method Details
#docker_args ⇒ Object
10 11 12 |
# File 'lib/kamal/configuration/volume.rb', line 10 def docker_args argumentize "--volume", "#{host_path_for_docker_volume}:#{container_path}" end |