similar to: Rake task and custom code.

Displaying 20 results from an estimated 100000 matches similar to: "Rake task and custom code."

2007 Mar 28
3
Make rake tasks of a plugin accessible to the app?
Hi all I want to add some rake tasks to my app using a plugin. So I added some tasks to vendor/plugins/my-plugin/Rakefile, but it seems that the tasks in a plugin''s Rakefile are not available to access from the application root, but you have to change directory to vendor/plugins/my-plugin. Is that correct? I''d really like to make my rake tasks from the plugin accessible by the
2009 Mar 06
2
rake test:functionals -> Task not supported by ''
I have a Rails project in which I''ve been using "rake test" tasks with great success. At some point (there were a few changes in the interim), rake started aborting test tasks. Here is the dialog: === $ rake test:functionals (in /Users/fritza/myproject) rake aborted! Task not supported by '''' (See full trace by running task with --trace) === The separate
2006 Nov 29
2
db:migrate to add colum bombs...
Hi I get the following when I try and run "rake db:migrate" (I"m running un Ubuntu linux) ********** code ********** (in /<home hidden>) == AddRpts: migrating ========================================================= -- add_column("rpts", :integer, {:limit=>3}) rake aborted! You have a nil object when you didn''t expect it! You might have expected an
2007 Aug 26
4
thread.so (LOAD ERROR)
I did an update to ruby 1.8.6 and since then I can''t run anything in Rails. Ex: j@necropolis:~/sandbox/rhp/0708/trunk$ rake -T /usr/lib/ruby/1.8/thread.rb:5:in `require'': no such file to load -- thread.so (LoadError) from /usr/lib/ruby/1.8/thread.rb:5 from /usr/local/lib/site_ruby/1.8/rubygems.rb:85:in `require'' from
2007 May 15
5
rake db:migrate sucks
I have installed ruby1.8.5-22 under windows, and then rails 1.2.3 and also i update rubygems to 0.9.3 with gems update --system however,when i enter the project directory and input the command rake db:migrate,it sucks with the following errors: rake aborted! uninitialized constant ActionController c:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:2028:in `const_missing''
2007 Dec 26
2
How to set environment when calling rake task inside another
This is what I have inside a rake task. In this rake task I need to call another rake task called email:send_messages. However I need to pass the RAILS_ENV as ''staging''. Rake::Task["rake:email:send_messages"].invoke I tried a lot of variations but none of them work. Rake::Task["rake:email:send_messages"].invoke RAILS_ENV=staging
2008 Dec 13
2
how to import a dump .sql file in a rake task
I have a dump of some tables to be filled when the app is setup ''.../db/dataset/regions_dpt_cities_codes.sql'' I would like to execute a task similar to the >mysql source <dump_file> like : ActiveRecord::Base.connection.execute("source #{path};") (which doesn''t run fine, of course.... is it possible in a rake task ? if yes, any suggestion ?
2007 Jul 12
1
Rails database backup & restore plugin or rake task
Hi, Searching in internet finds me mysql specific things and outdated rake tasks. I want a portable one. So using postgresql database, I want to dump my db data into a file. Then I want to load the file into mysql database. Any one know where I can find one? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2007 Apr 05
2
Question about Rake
Hello, How does Rake determine the list of tasks that Rake can execute?, in a Rails development environment. My problem has to do with the rake tasks that are provided by the Engines plugin (at least thats my current understanding that the Engines plugin provides additional Rake tasks that help manage vendor plugins). I''ve installed the latest version of the Engines plugin and
2008 Oct 22
3
Rake task vs script/runner
Hello, until now I allways used script/runner for running Rails cron jobs I wonder is there is any benefit (except not having any fake runner model in the models directory) to use a rake task instead in lib/tasks Thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2007 Jul 09
1
Issue with version field in schema_info
(I know ''version'' is the only field, but in case this changed one day my question will still apply) ;) I had to drop all my tables to re-run my migrations from version 1. When I executed ''rake db:migrate'' everything ran successfully. Which puts my database ''state'' at migration 007_xxx. Now when I add a migration (008_xxx) and re-run
2007 Jan 11
3
rake db:migrate doesn't work anymore
Hi! Up to now, i had no problems with my migrations and rake (rake db:migrate). Today, i got a project from a svn repository, but i can''t do "rake db:migrate": "rake aborted! No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1822:in `load_rakefile'' (See full trace by running task
2007 Dec 21
3
Access url_for from rake task
How do I access ActionController:Base url_for method from a Rake task. I tried to access ActionController from irb but it doesn''t work? Check out the pasite http://pastie.caboo.se/131266 -- Anil http://anilwadghule.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To
2008 Jan 01
3
3rdrail run rake task error: no Ruby script found in input (LoadError) (Windows)
Hi, dudes I got a question here. When I run "rake db:migrate" in 3rdrail, it throws an error: D:\ruby\bin\ruby.exe: no Ruby script found in input (LoadError). I have set the ruby interpreter paths, And can''t find the solution on Google. Any good ideas? Issac --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the
2008 May 26
1
Rake db task
Hello, just wanted to know how to create a rake db task to populate data into a database. Thanks Joel --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group,
2009 Dec 29
15
help needed - undefined method `reenable' for <Rake::Task db:schema:dump => [environment]>:Rake::Task
Hello, I am trying to deploy my app at the moment, and each time I do, I get the following error when i run a trace on it: rake db:migrate --trace (in /srv/some area/someplaceelse...) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute db:migrate ** Invoke db:schema:dump (first_time) ** Invoke environment ** Execute db:schema:dump rake
2006 Dec 10
4
where do certain rake commands reside
Ahoy, I''m trying to find where the rake db:migrate , db:fixtures and other rake commands are in the actual source code. I''m using edge rails , just being a bit crazy and reading source code all day and can''t find those. Any hints? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you
2008 Oct 21
2
Include rake migration in a plugin
Hi there, as sad as it seems, I can''t find a hint on how to include a simple statement like rake db:sessions:create rake db:migrate in the rakefile of a plugin that I want to write myself. Any help of of course appreciated - thanks in advance. Best, Alain M. Lafon -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this
2008 Mar 17
3
Don't know how to build task 'migrate'
Hi, I have a rather simple problem. Just installed Rails on OS X Leopard and the database connection to MySQL doesn''t work from Rails. I''m following Apples Expenses example (http://developer.apple.com/tools/rubyonrails.html). I''ve created the app with the command rails expenses -d mysql I can connect to the database with a GUI tool, but Rails can''t
2008 Feb 28
1
rake aborted! Don't know how to build task 'db_schema_dump'
Oh noes! What do I do? Just installed RoR and SQLite3 yesterday, watched a screencast that said the db_schema_dump will slaughter my enemies and make my poop smell like rainbows. Now I get rake telling me that it doesn''t know how to. Any help? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are