Sha256: 91d2562df65aceb47bc8521566cd425ee3282004d520766ef471e9eb82793dd7
Contents?: true
Size: 412 Bytes
Versions: 7
Compression:
Stored size: 412 Bytes
Contents
include Capistrano::DSL require 'dkdeploy/i18n' namespace :current_folder do desc "Delete current folder unless it's a symlink" task :remove_unlesss_symlinked do on release_roles :all do if test "[[ -d #{current_path} && ! -L #{current_path} ]]" execute :rm, '-rf', current_path else info I18n.t('info.ignoring_current_folder', scope: :dkdeploy) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems