Class: Vfs::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/vos/helpers/ubuntu.rb

Instance Method Summary collapse

Instance Method Details



38
39
40
41
42
43
# File 'lib/vos/helpers/ubuntu.rb', line 38

def symlink_to entry, options = {}
  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