Run Rake tasks with smart discovery and execution
Executes Rake tasks with intelligent discovery and contextual help for Ruby projects.
/plugin marketplace add bastos/ruby-plugin-marketplace/plugin install ruby@ruby-plugin-marketplace[task name or pattern]Execute Rake tasks with intelligent discovery and contextual help.
The user may provide:
db:migrate)db:*)greet[Alice])# All tasks with descriptions
bundle exec rake -T
# All tasks (including those without descriptions)
bundle exec rake -AT
# Filter by pattern
bundle exec rake -T db
bundle exec rake -T test
bundle exec rake task_name
# With arguments
bundle exec rake "greet[Alice,Bob]"
# Multiple tasks
bundle exec rake db:migrate db:seed
# With environment
RAILS_ENV=production bundle exec rake db:migrate
# Show task dependencies and execution order
bundle exec rake task_name --trace
# Dry run (show what would be executed)
bundle exec rake task_name --dry-run
# Show task prerequisites
bundle exec rake -P task_name
# Generic database tasks (example structure)
bundle exec rake db:create
bundle exec rake db:migrate
bundle exec rake db:seed
# Note: These are examples. Actual task names depend on your Rakefile.
bundle exec rake test
bundle exec rake test:models
bundle exec rake spec # RSpec (if configured)
Show how to find custom tasks in the project:
# List files defining tasks
ls lib/tasks/*.rake
--trace when debugging task failures/ruby:rake # List all tasks
/ruby:rake -T db # List database tasks
/ruby:rake db:migrate # Run migration
/ruby:rake "import[data.csv]" # Run with argument
/ruby:rake --trace test # Debug test task