namespace :after_party do
  desc '<%= task_description %>'
  task <%= file_name %>: :environment do
    puts "Running deploy task '<%= file_name %>'"

    # Put your task implementation HERE.

    # Update task as completed.  If you remove the line below, the task will
    # run with every deploy (or every time you call after_party:run).
    AfterParty::TaskRecord.create version: '<%= timestamp %>'
  end  # task :<%= file_name %>
end  # namespace :after_party

namespace :after_party do
  desc '<%= task_description %>'
  task <%= file_name %>: :environment do
    puts "Running deploy task '<%= file_name %>'"

    # Put your task implementation HERE.

    # Update task as completed.  If you remove the line below, the task will
    # run with every deploy (or every time you call after_party:run).
    AfterParty::TaskRecord.create version: '<%= timestamp %>'
  end # task :<%= file_name %>
end # namespace :after_party

Remove whitespace to play nice with RuboCop.
Remove whitespace to play nice with RuboCop.

Currently, the auto-generated task includes 2 whitespaces for end scope
comments. The default settings for the most used Ruby linter, RuboCop
(https://github.com/rubocop-hq/rubocop), specifies only 1 space before
comments. Who cares about these characters? Only those of us who use
RuboCop.
