Class: Vfs::Entry
- Inherits:
-
Object
- Object
- Vfs::Entry
- Defined in:
- lib/vos/helpers/ubuntu.rb
Instance Method Summary collapse
Instance Method Details
#symlink_to(entry, options = {}) ⇒ Object
38 39 40 41 42 43 |
# File 'lib/vos/helpers/ubuntu.rb', line 38 def symlink_to entry, = {} raise "invalid argument!" unless entry.is_a? Entry raise "can't use symlink ('#{self}' and '#{entry}' are on different storages)!" if self.driver != entry.driver raise "symlink target '#{entry}' not exist!" unless entry.exist? driver.box.bash "ln -sf #{entry.path} #{path}" end |