vagrant/aeris.rb
def mounts()
      return {} if !@conf.key?("mounts")

      mounts = {}
      @conf["mounts"].each do |name, path|
        path = File.expand_path(path)
        raise NameError("project_name cannot be used as a NFS mount point") if name == @name
        raise NameError("Path #{path} does not exist or is not a directory") if !File.directory?(path)
        mounts[name] = path
      end

      return mounts
    end
# Returns the list of NFS mounts defined in the conf
Returns the list of NFS mounts defined in the conf
Returns the list of NFS mounts defined in the conf
def mounts()
      return {} if !@conf.key?("mounts")
      mounts = {}
      @conf["mounts"].each do |name, path|
        path = File.expand_path(path)
        raise NameError("project_name cannot be used as a NFS mount point") if name == @name
        raise NameError("Path #{path} does not exist or is not a directory") if !File.directory?(path)
        mounts[name] = path
      end
      return mounts
    end
def mounts ( ) return { } if ! @conf . key? ( "mounts" ) mounts = { } @conf [ "mounts" ] . each do | name , path | path = File . expand_path ( path ) raise NameError ( "project_name cannot be used as a NFS mount point" ) if name == @name raise NameError ( "Path #{path} does not exist or is not a directory" ) if ! File . directory? ( path ) mounts [ name ] = path end return mounts end
Returns the list of NFS mounts defined in the conf
Returns the list of NFS mounts defined in the conf