Method: Dockerspec::Builder::ConfigHelpers#volume

Defined in:
lib/dockerspec/builder/config_helpers.rb

#volumeString

Returns the first volume (VOLUME).

Examples:

Basic RSpec Example

describe docker_build(path: '.') do
  its(:volume) { should eq '/data1' }
end

Returns:

  • (String)

    The first volume.



324
325
326
# File 'lib/dockerspec/builder/config_helpers.rb', line 324

def volume
  volumes.first
end