rake-task
Cronjob or rake task for automate a download, unzip and move to a specified directory
I\'m not sure if this should be achieved using cron job or rake task. There is this large zipped file (250MB+) that is provided by third-party, that is updated weekly. I can\'t be downloading it to m[详细]
2023-03-13 04:01 分类:问答How do I override rake tasks for a custom database adapter?
I\'ve written a custom database adapter that works correctly and effectively when a rails s开发者_开发问答erver is running.I would now like to add the usual rake task definitions for creating, droppin[详细]
2023-03-09 16:43 分类:问答Run a specific rake test before running a specific test in RAILS
I am testing an app with the built-in unit testing feature provided by rails. The problem is that one test heavily depends on calculations with ids and we must test that. As active record doesn\'t res[详细]
2023-03-03 10:54 分类:问答How do you declare a Rake task that depends on a parameterized task?
I have seen examples where a task has parameters and a dependency task like: task :name, [:first_name, :last_name] => [:pre_name] do |t, args|[详细]
2023-02-28 05:37 分类:问答How to create a directory structure with Rake for a Rails project
I have a Rails 3 app which needs to have some directories created. I\'d like to have a rake task which I can run to do this as a sort of initialization procedure. Basically I\'d like to do:rake app:cr[详细]
2023-02-17 20:24 分类:问答How to build task 'db:populate'
1 namespace :db do 2desc \"Fill database with sample videos\" 3task :populate => :environment d开发者_如何学运维o[详细]
2023-02-17 13:17 分类:问答Command to display all descriptions of rakefile tasks?
I know in Ant / Nant you can pass an argument like -projecthelp to get a list of avaialbe targets with descriptions.[详细]
2023-02-16 05:42 分类:问答rails 3 built-in rake tasks, where are they located?
I can put my custom rake tasks in lib/tas开发者_Python百科ks/, but where are the built-in ones (i.e. db:migrate, db:seed, etc) stored?[详细]
2023-02-11 22:07 分类:问答Advanced? rule for Rake file tasks
I have without success been trying to combine some of my mostly redundant Rake file tasks.Even directing me towards some documentation on rake rules would be great, I\'ve found very little.[详细]
2023-01-31 00:28 分类:问答How to ensure a rake task only running a process at a time
I use crontab to invoke rake task at some 开发者_JAVA技巧time for example: every 3 hour I want to ensure that when crontab ready to execute the rake task[详细]
2023-01-21 10:47 分类:问答