### Install RailsTasker Gem in Ruby on Rails Source: https://github.com/mawilmouth/rails_tasker/blob/master/README.md This snippet demonstrates how to integrate the RailsTasker gem into your Rails application. It covers adding the gem to your Gemfile, installing dependencies with Bundler, and running the necessary generators and database migrations to set up the gem's configuration and tracking table. ```Ruby gem 'rails_tasker' ``` ```Shell $ bundle install $ gem install rails_tasker ``` ```Shell $ rails generate rails_tasker:install $ rails db:migrate ``` -------------------------------- ### Create and Implement RailsTasker Post-Deploy Tasks Source: https://github.com/mawilmouth/rails_tasker/blob/master/README.md This section outlines the process of generating a new RailsTasker task file and the fundamental requirement for each task to implement a `#call` instance method. This method serves as the primary entry point for the task's logic, ensuring it can be executed by the RailsTasker system. ```Shell $ rails generate rails_tasker:task new_task_name ``` ```Ruby # lib/rails_tasker/tasks/_new_task_name.rb class NewTaskName < RailsTasker::Task def call # Your task logic here end end ``` -------------------------------- ### Execute RailsTasker Pending or Specific Tasks Source: https://github.com/mawilmouth/rails_tasker/blob/master/README.md These commands demonstrate how to run all pending RailsTasker tasks or execute a specific task by its version. It is highly recommended to integrate these commands into your deployment process, ideally after database migrations, to ensure all post-deploy tasks are completed successfully. ```Shell $ rake rails_tasker:run ``` ```Shell $ rake rails_tasker:run[version] ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.