class Distillery::ROM::Path
@abstract Abstract class used for ROM
path
Public Instance Methods
Get path basename
@return [String]
# File lib/distillery/rom/path.rb, line 48 def basename raise NotImplementedError end
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 physical content.
@return [Boolean]
# File lib/distillery/rom/path.rb, line 98 def delete! raise NotImplementedError end
Entry
@return [String]
# File lib/distillery/rom/path.rb, line 39 def entry raise NotImplementedError end
File
directly accessible on the file system
@return [String]
# File lib/distillery/rom/path.rb, line 21 def file raise NotImplementedError end
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
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
Path
value as string.
@return [String]
# File lib/distillery/rom/path.rb, line 13 def to_s raise NotImplementedError end