lib/shaddox/shadow.rb in shaddox-0.0.27 vs lib/shaddox/shadow.rb in shaddox-0.0.28
- old
+ new
@@ -56,11 +56,10 @@
def ln_s(source, dest, opts = {})
ensure_parent_dir(source)
ensure_parent_dir(dest)
info "Linking '#{source.exp_path}' to '#{dest.exp_path}'", 1 if @debug
- info "... in dir #{Dir.pwd}", 1 if @debug
FileUtils::ln_s(source.exp_path, dest.exp_path, opts)
end
def mkdir(path)
info "Ensuring directory '#{path}' exists", 1 if @debug
@@ -114,15 +113,15 @@
end
# Link shared paths
info 'Linking shared paths', 1 if @debug
repo.shared.each do |shared_path|
- ln_s "#{release_path}/#{shared_path}", "./shared/#{shared_path}"
+ ln_s "./shared/#{shared_path}", "#{release_path}/#{shared_path}"
end
# Link ./current to the latest release
info 'Linking current to latest release', 1 if @debug
- ln_s './current', release_path
+ ln_s release_path, './current'
end
end
def install(package)
unless @installer