Displaying 20 results from an estimated 50000 matches similar to: "Delayed scripts and tasks"
2006 Apr 12
2
Rake not finding lib/tasks folder?
Hi all,
I''m attempting to set up a new Rails app using Typo. I''ve downloaded
the Typo 2.6.0 edition which includes Rails 1.0 and it works fine. I''ve
set up version control with SVN and checked out a new working copy.
I''ve run Capistrano -A on the application and it''s set up my deploy.rb
and lib/tasks/capistrano.rake.
Rake doesn''t seem
2006 Mar 21
0
Automatic namespacing of custom Rake tasks
As you know you can create your own .rake files in lib/tasks and
Rails will automatically find them - as Rake 0.7 adds namespace
support and Rails is already taking advantage of these namespaces if
you are on Edge Rails I thought it would make a lot of sense if Rails
automatically namespaced your own custom rake files, so I raised a
ticket for this and I''ve now implemented it
2009 Nov 02
0
testing Rake tasks with FakeFS
Jake Benilov wrote:
> Hello Ben,
>
Hi Jake,
I hope you don''t mind but I am copying this response to the rspec-users
list in case any one else is able to shed more light on it.
> I have a bit of a newbie question regarding fakefs; I want to test Rake
> tasks using fakefs and rspec:
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> require
2007 Jan 20
0
Rails can't find my Rake Tasks
Hi,
I''ve added some rake tasks to my rails project but on my production
server, rails is not finding the tasks. On my dev box however, rails
finds them no problem. They are located in the lib/tasks folder in a
file ending in .rake. I do a rake -T and nothing shows up for it. There
are a lot of other tasks that show up though.
My production server is Redhat where as my dev is Windows
2007 Jun 09
1
Rake test tasks only work with --trace
So this has left me completely confused. I''m trying to get the test
suite going on an existing app, but things going a little crazy.
In the application directory if I do ''rake'' or ''rake test'' I get:
rake aborted!
Lost connection to MySQL server during query
However if I do ''rake test:units'' or ''rake
2008 Mar 18
0
rake tasks
Hi All,
New to merb, I was wondering if there are any similar rake tasks to that
of the rails rake stats?
Im using merb version 0.5.3
Tried the aok task and am getting the following:
eoghan-js-Computer:test_app eoghanj$ rake aok
(in /project/merb/test_app)
/usr/local/lib/ruby/gems/1.8/gems/merb-0.5.3/lib/merb/version.rb:45:
warning: already initialized constant RELEASE
rake rcov
(in
2010 Dec 09
0
invoke rake tasks
Hello
I have script in Rails root folder like this
tasks = [some tasks...]
tasks.each do |task|
fork do
Rake::Task[task].execute
end
end
And get the error "Don''t know how to build task". How to execute my
tasks?
In terminal rake task_name works correctly
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the
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
2008 Jan 08
2
Problems with rspec 1.1 required inside rake tasks
This is interesting.
The default rspec rake tasks generated by Hoe give you an rspec.rake
file that looks like:
> begin
> require ''spec''
> rescue LoadError
> require ''rubygems''
> require ''spec''
> end
>
So far so good.
When you invoke rake to do something, say check_manifest
> rake check_manifest
>
You
2009 Jun 06
5
Rake Tasks
Hi Everyone,
I just need some further help clarifying a custom rake task I''m building
and the logistics of how it should be working.
I''ve created a custom rake task in libs/tasks called scraper.rake which
so far just contains the following:
desc "This task will parse data from ncaa.org and upload the data to our
db"
task :scraper => :environment do
# code goes
2007 Dec 16
0
Running default rake tasks?
I installed via piston and when in vendor/plugins/backgroundrb, I
attempt to run the default rake task:
(in /home/wallace/new_bdrb-wheels/vendor/plugins/backgroundrb)
rake aborted!
no such file to load -- spec/rake/spectask
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require''
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require''
2010 Feb 25
0
Rails problems running rake and other tasks - undefined method `action_controller'
I suddenly have a major problem in all my Rails 3 apps:
$ rake db:migrate --trace
rake aborted!
Don''t know how to build task ''db:migrate''
/Users/kristianconsult/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/
rake.rb:1728:in `[]''
/Users/kristianconsult/.rvm/gems/ruby-1.9.1-p378/gems/rake-0.8.7/lib/
rake.rb:2050:in `invoke_task''
2006 Apr 28
0
rake tasks on test environment
Hello,
How do I change the environment for rake tasks on command line. For example,
if I want to do ''rake bootstrap'' on the test database. How will I do it from
command line?
I don''t want to make changes to the environmehnt.rb file.
thanks.
--
Surendra Singhi
http://ssinghi.kreeti.com, http://www.kreeti.com
Read my blog at: http://cuttingtheredtape.blogspot.com/
2009 Feb 03
3
Rcov - Specifying rake tasks
I am trying to get a customized rcov rake task working. What I have so
far looks like this:
desc "Rcov code coverage reports"
require ''rcov/rcovtask''
require ''spec/rake/spectask''
require ''cucumber/rake/task''
task :rcov => "rcov:all"
namespace :rcov do
Rcov::RcovTask.new(:all) do
task :rcov =>
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 Sep 04
7
Rake tasks getting in the way of edge (uses gem instead)
So I''d been running gem releases of rspec for the past several months,
and I installed edge rspec so that I can use Story Runner.
I''m running into a problem because I''ve got a couple rake tasks that
reference "spec/rake/raketask". If I try to run "rake spec" then it
pulls in the gem version instead of the plugin version. rake blows up
saying that
2009 Apr 24
1
Can rails environments be loaded only once and then execute rake tasks without loading it again and again?
Hi there guys,
I have a daemon that executes a rake task periodically in a loop in
the backend. And every time it runs the rake task, rails environment
is reloaded. Is there a way that the rails environment is loaded only
once before the loop and the following rake task will not load it
again and again?
Thank you in advance.
2006 Nov 03
2
tasks need --rakelibdir
Hey,
quick question: what am I missing that I always need to pass the
''--rakelibdir vendor/plugins/backgroundrb/tasks'' option to rake?
thanks,
James
2008 Apr 11
0
expiring cache outside controller (e.g. in rake tasks)
Hello,
I need to expire cache outside controller, in my rake tasks. I want to
use standard methods expire_fragment,etc.. but I can''t manage to use
them outside controllers. I tried including
ActiveController::Caching::Actions but didn''t work.
Anyone has any solution? I''m losing my head how to do it... (besides
manually deleting files)
Thanks
Uros
2006 Feb 16
9
rake migrate HANGS
I have been attempting to use migrations as a build a poll app.
I have created the initial file:
-----------------
class CreateTablePollsAndPollOptions < ActiveRecord::Migration
def self.up
create_table polls do |table|
table.column ''question'', :string
table.column ''user_id'', :integer
table.column ''start_time'',