instance method
rake
Ruby on Rails 5.2.8.1
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 225
def rake(command, options = {})
execute_command :rake, command, options
end
Defined in railties/lib/rails/generators/actions.rb line 225
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Generators::Actions