class Distillery::ROM::Path

@abstract Abstract class used for ROM path

Public Instance Methods

basename() click to toggle source

Get path basename

@return [String]

# File lib/distillery/rom/path.rb, line 48
def basename
    raise NotImplementedError
end
copy(to, length = nil, offset = 0, force: false, link: :hard) click to toggle source

Copy ROM content to the filesystem, possibly using link if requested.

@param to [String] file destination @param length [Integer,nil] data length to be copied @param offset [Integer] data offset @param force [Boolean] remove previous file if necessary @param link [:hard, :sym, nil] use link instead of copy if possible

@return [Boolean] status of the operation

# File lib/distillery/rom/path.rb, line 75
def copy(to, length = nil, offset = 0, force: false, link: :hard)
    raise NotImplementedError
end
delete!() click to toggle source

Delete physical content.

@return [Boolean]

# File lib/distillery/rom/path.rb, line 98
def delete!
    raise NotImplementedError
end
entry() click to toggle source

Entry

@return [String]

# File lib/distillery/rom/path.rb, line 39
def entry
    raise NotImplementedError
end
file() click to toggle source

File directly accessible on the file system

@return [String]

# File lib/distillery/rom/path.rb, line 21
def file
    raise NotImplementedError
end
reader(&block) click to toggle source

ROM reader @note Can be costly, prefer existing copy if possible

@yieldparam [#read] io stream for reading

@return block value

# File lib/distillery/rom/path.rb, line 60
def reader(&block)
    raise NotImplementedError
end
rename(path, force: false) click to toggle source

Rename ROM and physical content.

@note Renaming could lead to silent removing if same ROM is on its way

@param path [String] new ROM path @param force [Boolean] remove previous file if necessary

@return [Boolean] status of the operation

# File lib/distillery/rom/path.rb, line 89
def rename(path, force: false)
    raise NotImplementedError
end
storage() click to toggle source

File or directory that is considered the storage space for entries

@return [String]

# File lib/distillery/rom/path.rb, line 30
def storage
    raise NotImplementedError
end
to_s() click to toggle source

Path value as string.

@return [String]

# File lib/distillery/rom/path.rb, line 13
def to_s
    raise NotImplementedError
end