Si ya tuviésemos usuarios en la base de datos tendríamos que generarles sus tokens mediante una tarea rake, lo que no veremos hoy.
If we have pre-existing users in the database we'll need to create tokens for them as we could create a rake task to do this, though we won't do so here.
Podemos colocar el comando anterior en una tarea rake y ejecutarla de forma regular con la gema Whenever.
We can place the above command in a rake task and call it in a regular basis using the Whenever gem.
Si ejecutamos la tarea Rake que escribimos la semana pasada podremos obtener los precios de todos estos nuevos ítems.
If we run the rake task we wrote last week then we can get prices for all of our new items.
Una vez que hayamos reiniciado el servidor con la tarea Rake podemos hacer clic en el enlace 'Retry' para volver a ejecutar la tarea que falló.
Once we've restarted the Rake task we can click the 'Retry' link to run the job again.
Por ejemplo pasar argumentos a una tarea Rake no es elegante y por lo general hay que recurrir a pasarlas como variables de entorno.
As a scripting solution Rake can be a little limiting, for example passing arguments to a Rake task is not pretty and usually we have to resort to passing them as environment variables.
Se ha añadido la tarea Rake 'joya'. Algunas actualizaciones gemspec.
Added the 'gem' Rake task. Some gemspec updates.
Si queremos ejecutar Brakeman como una tarea Rake podemos utilizar la opción - rake.
If we want to run Brakeman as a Rake task we can use the - rake option.
La razón por la que no se encuentra la clase SnippetHighlighter es porque hemos empezado la tarea Rake que ejecuta el servidor antes de escribir dicha clase.
The SnippetHighlighter class isn't being found and the reason for this is that we started the Rake task before we wrote it.
Esto generará una tarea Rake en nuestra aplicación.
This will generate a Rake file in our application.