Questions tagged [rakefile]

Rakefile: configuration file for Rake build language (equivalent build.xml in Ant). Rakefiles are Rake's version of Makefiles.

Rakefiles define Rule patterns to synthesize implicit tasks for Rake. There usage is similar to Makefiles for make.

Rakefiles are defined in pure Ruby. There filename is normally rakefile or Rakefile. Rake's command line option —rakefile filename use filename as the name of the rakefile.

227 questions
0
votes
1 answer

Stuck in rake migration

How are you everyone? I am 'STUCK' in rake migration - The error message shows - Migrating to AddDeviseToUsers (20130628040020) == AddDeviseToUsers: migrating =============================================== -- change_table(:users) rake…
Optinovation
  • 69
  • 1
  • 6
0
votes
2 answers

Rake aborted: "ERROR: 'rake/rdoctask' is obsolete and no longer supported. Use 'rdoc/task' (available in RDoc 2.4.2+) instead."

When trying to execute: rake db:migrate The terminal answers: rake aborted! ERROR: 'rake/rdoctask' is obsolete and no longer supported. Use 'rdoc/task' (available in RDoc 2.4.2+)…
0
votes
1 answer

how to tell warbler to not read local rakefile

Is there a way to run warble war in such a way that it will not read the local Rakefile? In other words, I want to be able to have a borken Rakefile, but have it not affect warbler at all.
Alexander Bird
  • 38,679
  • 42
  • 124
  • 159
0
votes
1 answer

rake db:migrate rake aborted! unable to determine name from existing gemspec

I am trying to rake db:migrate. I cloned a repository and tried to rake db:migrate, but get this error : rake aborted! Unable to determine name from existing gemspec. Use :name => 'gemname' in #inst ll_tasks to manually set it.…
ishwr
  • 725
  • 3
  • 14
  • 36
0
votes
1 answer

rake task return on calling task

I would like to return from a rake task in the calling task. Does it possible? Something like in this example, i would like to be able to call task one and one independantly but also one and two sequentially. task: one do some work if work ok …
7vingt
  • 301
  • 2
  • 16
0
votes
0 answers

Deploying Jekyll with a rakefile & rsync

I'm running into trouble trying to use a rakefile to deploy a Jekyll site. Following the instructions here, I've set up ssh keys and can get into my server without entering a password, so that works. However, when I try to run a test sync (e.g, rake…
Chris
  • 547
  • 6
  • 20
0
votes
1 answer

Rake - capture :task_name as an option?

I am watching a Peepcode screencast Play by Play: Jim Weirich. He executes a rake task that appears to pass the final task name as an option. See how the task :demo creates a "demo" folder. How was this done? EDIT: Thanks, Alex.Bullard. So with…
seanomlor
  • 973
  • 1
  • 10
  • 23
0
votes
1 answer

How to include loadpath/dependency in rakefile

I have installed, Ruby 1.8.7, ci_reporter 1.8.4, test unit 2.5.4, rake 10.0.3. My testA.rb : require 'includeA.rb' require 'includeB.rb' require 'includeC.rb' require 'includeD.rb' Begin of the code... ... End of the code Usually I execute a test…
0
votes
2 answers

Is it possible to use shorthand for multiple tasks in same namespace in task requirements?

Here is an example Rakefile namespace :install do task :baz do ... end task :quux do ... end end task :foo => ['bar:baz','bar:quux'] do ... end Is it possible to write something like task :foo => ['bar' => ['baz',…
deiga
  • 1,587
  • 1
  • 13
  • 32
0
votes
1 answer

rake task: Undefined method for Class

I have added a new task to my RakeFile (I know the new way of doing it is to add your task to lib/tasks, but other tasks are in the RakeFile and I dont wish to refactor just yet.) The task that I added accesses a model (maybe not though as the model…
Christian
  • 3,917
  • 2
  • 23
  • 40
0
votes
1 answer

rake db:create issue

I have just started working on one project, and I have configured my system according to the requirement of the project i.e. rails v => 2.3.11 ruby v => 1.8.7 When i run command "rake db:create" it comes up with error as rake aborted! no such file…
Jeet
  • 1,350
  • 1
  • 15
  • 32
0
votes
1 answer

RakeTask returns "Don't know how to build task" in Rails project

I am a newb and when running the below rake task keep getting the error message "Don't know how to build task 'create_postgis_template'". My rake file looks as follows: require(File.join(File.dirname(__FILE__), 'config', 'boot')) require…
BC00
  • 1,589
  • 3
  • 29
  • 47
0
votes
2 answers

How to compile Ruby Extension

I have a simple extension in ext/Q/flagvalue.c My ext/Q/extconfig.rb looks like this: require 'mkmf' create_makefile('Q/flagvalue') The task in Rakefile is set-up just so: Rake::ExtensionTask.new("Q") do |extension| extension.lib_dir =…
rhavin
  • 1,512
  • 1
  • 12
  • 33
0
votes
1 answer

Array of file names: how to move 2 certain files (if present) to the front?

In a build.rake file I have an array holding names of JavaScript files: JS_FROM_INDEX=`./bin/extract_files -e js index.html`.split It holds these files: js/config.js js/vendor/dollar.js js/vendor/ejs.min.js js/utils.js ...... js/Viewport.js Then…
Alexander Farber
  • 21,519
  • 75
  • 241
  • 416
0
votes
1 answer

How do I start redis as a rakefile task

I am trying to create a rakefile that runs both redis and irb. I have figured out how to run IRB (the first task runs), but when I try to run the redis task I see the error: rake aborted! wrong number of arguments Exactly what is wrong? My code is…
skyfaerie
  • 33
  • 7
1 2 3
15
16