```ruby
namespace :releaser do
  desc "Write current revision to CURRENT_VERSION file."
  task :write_current do
    version = self[:current_revision]
    run "echo \"#{version}\" > #{release_path}/CURRENT_VERSION"
  end

  task :tag_deploy_commit do
    run_locally "bundle exec releaser deploy --push"
  end
end

on :load do
  set :current_revision do
    run_locally("bundle exec releaser info --no-verbose").chomp
  end

  if fetch(:write_version, true)
    after "deploy:symlink", "releaser:write_current"
  end

  if fetch(:tag_deploy_commit, true)
    before "deploy:update_code", "releaser:tag_deploy_commit"
  end
end
```

Use deploy:create_symlink hook instead of deprecated.
user
```ruby
namespace :releaser do
  desc "Write current revision to CURRENT_VERSION file."
  task :write_current do
    version = self[:current_revision]
    run "echo \"#{version}\" > #{release_path}/CURRENT_VERSION"
  end

  task :tag_deploy_commit do
    run_locally "bundle exec releaser deploy --push"
  end
end

on :load do
  set :current_revision do
    run_locally("bundle exec releaser info --no-verbose").chomp
  end

  if fetch(:write_version, true)
    after "deploy:create_symlink", "releaser:write_current"
  end

  if fetch(:tag_deploy_commit, true)
    before "deploy:update_code", "releaser:tag_deploy_commit"
  end
end
```
assistant