Method: Forge::Project#link
- Defined in:
- lib/forge/project.rb
#link(source) ⇒ Object
Create a symlink from source to the project build dir
65 66 67 68 69 70 71 72 73 |
# File 'lib/forge/project.rb', line 65 def link(source) source = File.(source) unless File.directory?(File.dirname(source)) raise Forge::LinkSourceDirNotFound end @task.link_file build_path, source end |