Displaying 20 results from an estimated 20000 matches similar to: "Rails database backup & restore plugin or rake task"
2006 Jun 28
1
Is there a rake task to extract data from a database/table
I know I can get the schema by running
rake db_schema_dump
but, is there a way to ge the data from a table or a database into a format
that can be quickly converted to a migration. What I''m really trying to do
is synch my local development database (schema and data) with the db on my
hosting service.
--
Best Regards,
-Larry
"Work, work, work...there is no satisfactory
2005 Dec 26
0
Rake (default task) overwrites development database?
I changed the subject to be more appropriate. Any idea why the
development database would be effected?
On 12/26/05, Ryan Wood <ryan.wood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
> Hey all. Hope you can help with this. I was running "rake" to run
> tests on my server we are setting up for production. I''m currently
> entering all my data into the dev
2007 Jul 26
0
Rake task database to XML export
Hi all...
I am a new bie of ruby rails. i was working with some task to get
a database table to be exported in to an XMLFile. I need to write a
raketask for that. Can some one please help me with some good stuff
having with you regarding the rake task file written to do that dbtable
to xml file file conversions.
Please help me with some sample code or links
Thanks to all in advance
--
2008 May 07
0
Calling a controller method with a rake task - plugin errors
I have a rake task to call a controller method:
-------------------------------------
require ''action_controller''
require ''action_controller/integration''
namespace :backup do
desc "Starts automated backup procedure for all databases"
task "do_auto" do
app = ActionController::Integration::Session.new;
app.get
2006 Aug 06
0
Best practice: installing plugin assets in rake task or install.rb?
I noticed that a few plugins come with rake tasks to install additional
assets. In Rails 1.1.4 there''s a hook file, install.rb, that is run
when after the plugin has been installed (edge Rails has uninstall.rb,
too). Wouldn''t it be nicer to use this (these) hooks to install
(remove) plugin specific files automatically?
Preferrably existing (different) files are overwritten
2006 Feb 14
25
Rails and background tasks/threads
I am just getting into web servers/web applications and rails as well
so bear with me. I am trying to write a web app that, based on a
users input from the browser, will perform some task, and update the
browser (ala ajax style) as needed and/or provide a way for the user to
control the background task.
Now, I have more experience with java servlets, which makes this easy
enough for a beginner.
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
2006 Apr 30
1
Can''t freeze rails using rake...
Is there a method to get a copy of rails and its dependencies into the
vendor folder when rake refuses to work?
--
Posted via http://www.ruby-forum.com/.
2013 Jul 01
0
Rake task like "rake cache_digests:dependencies" for Rails 4?
The cache_digests gem has the "rake cache_digests:dependencies" task for
checking template dependencies.
Since Rails 4 includes this caching scheme by default, should it include a
similar rake task?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send
2006 Oct 22
0
[705] trunk/wxruby2/rake/rakedocs.rb: Add rake task to publish docs to wxruby website (Alex Fenton)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding:
2006 Mar 26
3
Using a Gem in your App without installing to the system
Does anyone know how to use a gem without installing it to the rails
installation? For example, I can download the Money gem package from
http://dist.leetsoft.com/ but if I don''t have the ability to install a
gem at my hosting provider, how can I use the gem in my app?
Cheers,
Dan
2006 Mar 21
0
is "Task" a reserved class name in Edge Rails? (it clashes with Rake''s Task)
Ok, so I''ll bet that lots of people would naturally have a DB table called
"Tasks" and a model called Task, and this works fine in Rails 1.0. BUT,
using Edge Rails things turn strange when you start visiting your Task pages
because it thinks that you''re trying to use Rake (which also has a Task
class). Is there any way around this?
-Greg
Greg Edwards
CTO,
2013 Feb 28
0
Rake tasks db:test:prepare cannot be executed in the same task of db:reset or db:migrate
Hey all,
I''m trying to create a task that prepare the environment to start
programming.
To do so, I created a task like this *task :setup_env => [''db:reset'',
''db:migrate'', ''db:test:prepare'']* and observed that after execute *
rake setup_env*, it never execute db:test:prepare properly. In order to get
the schema cloned to test db,
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
2007 Oct 12
0
Speccing a rake task
Greetings,
I''m writing a custom rake task, and I''d like to write an assosciated spec for it.
Does anyone have an example spec for a rake task?
I''ve seen some examples on the web that use these before blocks:
before(:each) do
@rake = Rake::Application.new
Rake.application = @rake
end
And use
@rake["db:user_migration"].invoke
To invoke the
2006 May 09
2
Disabling FOREIGN KEYs in a Rake task
Hi,
How could I disable my database FOREIGN KEYs in a Rake task?
Or, how could I call the execute() method in a Rake task?
I''m trying to perform something like:
task :delete_the_cippalippa => :environment do
require RAILS_ROOT+''/lib/marsian.rb''
# FIXME: execute() is undefined
execute "SET FOREIGN_KEY_CHECKS = 0"
Cippalippa.delete(-1)
2006 Apr 18
0
extend doc:app rake task to Include lib/*?
I''ve never really done much with rake and I''m trying to figure out how
to add some options to the doc:app task. For instance I''d like to
include documentation for files in the lib directory. I can''t seem to
figure out the proper way to do it short of changing the
lib/tasks/documentation.rake in the rails distribution. After poking
around in the rails tasks, I
2006 Aug 11
1
Absolute path to public/images in rake task?
Hi all
I''m trying to create a rake task for the first time, so please be a bit
patient with me. ;-)
I''m coding a photo gallery. Every photo gallery''s photos are in its own
folder, and after an update I''d like to be able to synchronize the photo
files with the database (because every photo has its own Photo class
object). I''ve got so far:
# File
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,
2008 Apr 08
2
Can you add an option to select the ruby interpreter for rake task?
Hi all,
My problem is that I''ve installed both ruby 1.8 (as ruby) and
ruby 1.9 (as ruby1.9) on my system. I use spec/rake/spectask for
my Rakefile. But the generated command is
ruby -I.. blabla
it should be "ruby1.9 -I... blabla", but after look at the code
of spectask.rb, I found this line:
==> cmd = "ruby "
rb_opts = ruby_opts.clone