lib/fulmar/infrastructure/model/transfer/rsync_with_versions.rb in fulmar-2.0.2 vs lib/fulmar/infrastructure/model/transfer/rsync_with_versions.rb in fulmar-2.1.0
- old
+ new
@@ -188,9 +188,11 @@
# An entry in :shared might be "data/resources/images", so we first need to create
# the directory "data/resources" in the release dir and afterwards create the link
# @return [true, false] success
def add_shared
commands = [] # Collect all remote commands first, then execute them in one step to avoid reconnecting very often
+ return true if @config[:shared].nil? || @config[:shared].empty?
+
@config[:shared].each do |path|
commands << "mkdir -p \"#{release_dir}/#{File.dirname(path)}\""
unless remote_path_exists?("#{@config[:shared_dir]}/#{path}")
commands << "mkdir -p \"#{@config[:shared_dir]}/#{path}\""