instance method
rake
Ruby on Rails 6.0.6
Since v3.0.20Signature
rake(command, options = {})
Runs the supplied rake task (invoked with ‘rake …’)
rake("db:migrate") rake("db:migrate", env: "production") rake("gems:install", sudo: true) rake("gems:install", capture: true)
Parameters
-
commandreq -
optionsopt = {}
Source
# File railties/lib/rails/generators/actions.rb, line 237
def rake(command, options = {})
execute_command :rake, command, options
end
Defined in railties/lib/rails/generators/actions.rb line 237
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Generators::Actions