lib/dockistrano/service.rb
# Returns the mounted volumes for this service
Returns the mounted volumes for this service
Returns the mounted volumes for this service
def volumes
      [].tap do |volumes|
        volumes << "/dockistrano/#{image_name.gsub("-", "_")}/data:/dockistrano/data"
        if mount_src and !mount_src.empty?
          mount_src.each do |host_src, container_src|
            volumes << "#{host_src}:#{container_src}"
          end
        end
      end
    end
def volumes [ ] . tap do | volumes | volumes << "/dockistrano/#{image_name.gsub("-", "_")}/data:/dockistrano/data" if mount_src and ! mount_src . empty? mount_src . each do | host_src , container_src | volumes << "#{host_src}:#{container_src}" end end end end
Returns the mounted volumes for this service
Returns the mounted volumes for this service