BathHacked/energy-sparks

View on GitHub
lib/tasks/deployment/20241021125438_add_footer_feature.rake

Summary

Maintainability
Test Coverage
namespace :after_party do
  desc 'Deployment task: add_footer_feature'
  task add_footer_feature: :environment do
    puts "Running deploy task 'add_footer_feature'"

    Flipper.add(:footer)

    # 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: AfterParty::TaskRecorder.new(__FILE__).timestamp
  end
end