Rename to volume_args
This commit is contained in:
@@ -10,7 +10,7 @@ class Mrsk::Commands::App < Mrsk::Commands::Base
|
||||
"--name", config.service_with_version,
|
||||
*rails_master_key_arg,
|
||||
*role.env_args,
|
||||
*config.volumes,
|
||||
*config.volume_args,
|
||||
*role.label_args,
|
||||
config.absolute_image,
|
||||
role.cmd
|
||||
@@ -44,7 +44,7 @@ class Mrsk::Commands::App < Mrsk::Commands::Base
|
||||
("-it" if interactive),
|
||||
*rails_master_key_arg,
|
||||
*config.env_args,
|
||||
*config.volumes,
|
||||
*config.volume_args,
|
||||
config.service_with_version,
|
||||
*command
|
||||
end
|
||||
@@ -55,7 +55,7 @@ class Mrsk::Commands::App < Mrsk::Commands::Base
|
||||
"--rm",
|
||||
*rails_master_key_arg,
|
||||
*config.env_args,
|
||||
*config.volumes,
|
||||
*config.volume_args,
|
||||
config.absolute_image,
|
||||
*command
|
||||
end
|
||||
|
||||
@@ -87,7 +87,7 @@ class Mrsk::Configuration
|
||||
end
|
||||
end
|
||||
|
||||
def volumes
|
||||
def volume_args
|
||||
if config.volumes.present?
|
||||
config.volumes.map { |volume| "--volume #{volume}" }
|
||||
else
|
||||
@@ -119,7 +119,7 @@ class Mrsk::Configuration
|
||||
env_args: env_args,
|
||||
ssh_options: ssh_options,
|
||||
builder: config.builder,
|
||||
volumes: volumes
|
||||
volume_args: volume_args
|
||||
}.compact
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user