Sha256: 45d69279b429532b32f90045b64dae540e86f6265d9e382d10dd091fc59a511b

Contents?: true

Size: 445 Bytes

Versions: 5

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true

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

5 entries across 5 versions & 1 rubygems

Version Path
dkdeploy-core-10.0.0 lib/dkdeploy/tasks/current_folder.rake
dkdeploy-core-9.3.1 lib/dkdeploy/tasks/current_folder.rake
dkdeploy-core-9.2.4 lib/dkdeploy/tasks/current_folder.rake
dkdeploy-core-9.3.0 lib/dkdeploy/tasks/current_folder.rake
dkdeploy-core-9.2.3 lib/dkdeploy/tasks/current_folder.rake