lib/dply/tasks.rb in dply-0.1.6 vs lib/dply/tasks.rb in dply-0.1.7
- old
+ new
@@ -1,9 +1,10 @@
require 'json'
require 'dply/shell'
require 'dply/bundle'
require 'dply/yum'
+require 'dply/linker'
require 'dply/pkgs_config'
module Dply
class Tasks
@@ -50,9 +51,17 @@
if use_yum || !drake_exists
yum_install build_mode
else
command_install build_mode
end
+ end
+
+ def link(source, map)
+ return if not map
+ logger.bullet "symlinking #{source}"
+ dest = Dir.pwd
+ linker = Linker.new(source, dest, map: map)
+ linker.create_symlinks
end
private
def bundle