mina-deploy / mina

Blazing fast deployer and server automation tool
https://rubygems.org/gems/mina
Other
4.35k stars 491 forks source link

why mina setup new a file use makdir -p #538

Closed dongfeng676 closed 6 years ago

dongfeng676 commented 7 years ago

fetch(:shared_files, []).each do |linked_path| command %{mkdir -p "#{File.dirname(linked_path)}"} end

adam12 commented 7 years ago

This is a sanity check to ensure that the destination folder of the symbolic link actually exists before attempting to create it.

d4be4st commented 6 years ago

because the deploy would fail if all shared folders are not created, and to ensure that we use -p