Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Commit

Permalink
fix(source): remove temporary directories after deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
ajgon committed Mar 17, 2018
1 parent 683f840 commit b92417f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions libraries/drivers_source_remote_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def before_deploy
end

def deploy_before_restart
remove_dot_git
remove_obsolete_directories
end

def prepare_archive_directories
Expand Down Expand Up @@ -54,11 +54,16 @@ def prepare_dummy_git_repository
context.execute dummy_git_command
end

def remove_dot_git
def remove_obsolete_directories
context.directory File.join(deploy_dir(app), 'current', '.git') do
recursive true
action :delete
end

context.directory tmpdir do
recursive true
action :delete
end
end

def dummy_git_command
Expand Down

0 comments on commit b92417f

Please sign in to comment.