Class: DependencyWiring::MountPoint

Inherits:
Object
  • Object
show all
Includes:
Wiring
Defined in:
lib/dependency_wiring/mount_point.rb

Instance Attribute Summary

Attributes included from Wiring

#dest, #src

Instance Method Summary collapse

Methods included from Wiring

#initialize, #to_s

Instance Method Details

#prepare_destObject



8
9
10
11
# File 'lib/dependency_wiring/mount_point.rb', line 8

def prepare_dest
  parent = File.split(@dest)[0]
  FileUtils.mkdir_p(parent)  
end

#wireObject



13
14
15
16
# File 'lib/dependency_wiring/mount_point.rb', line 13

def wire
  prepare_dest
  relink
end