Class: Shipitron::FindDockerVolumeName

Inherits:
Object
  • Object
show all
Includes:
Metaractor
Defined in:
lib/shipitron/find_docker_volume_name.rb

Instance Method Summary collapse

Instance Method Details

#callObject



11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/shipitron/find_docker_volume_name.rb', line 11

def call
  volumes = container_volumes(container_name: container_name)

   = volumes.find do |volume|
    volume['DockerName'] =~ volume_search
  end

  if .nil?
    raise 'Unable to find shipitron-home volume!'
  end

  context.volume_name = ['DockerName']
end