I'm using the filesytem plugin for Hudson, and when a build happens it looks for new/modified files, copies them to the Workspace, runs tests using Rake, and then publishes those junit xml result files.
However, the updated junit xml result files don't get pushed to the workspace until the next build. This means that when the publishin...
Because of the concept introduced in here,
Rails::Plugin is nothing more than a
Rails::Engine, but since it's loaded
too late in the boot process, it does
not have the same configuration powers
as a bare Rails::Engine.
Opposite to Rails::Railtie and
Rails::Engine, you are not supposed to
inherit from Rails::Plugin.
...
Hey,
I'm trying to write to my log files while running a rake task. It works fine in development mode, but as soon as I switch to the production environment, nothing is written to the log files.
I read here
http://stackoverflow.com/questions/1022093/how-do-i-use-a-custom-log-for-my-rake-tasks-in-ruby-on-rails/1648159#1648159
that thi...
Hi,
I am trying to automate our build system and one of the task is to fail the builds if a warnings is thrown in the compiler.
we are using sh rake command to compile.
How one can fail on warnings, is there any way i can capture the output from compiler to a buffer and do a pattern search?
Thanks,
Prabhu
...
Im trying to use rake in a project, and if I put everything into Rakefile it will be huge and hard to read/find things, so I tried to stick each namesapce in its own file in lib/rake, i added this to the top of my rake file:
Dir['#{File.dirname(__FILE__)}/lib/rake/*.rake'].map { |f| require f }
it loads the file no problem, but doesn'...
I have a rake task that sends out the next 'x' invitations to join a beta it uses this code:
desc "This will send out the next batch of invites for the beta"
task :send_invites => :environment do
limit = ENV['limit']
c = 0
invitation = Invitation.all(:conditions => { :sent_at => nil, :sender_id => nil }, :limit => limit).each do |...
The latest changesets to Ruby 1.9.2 no longer make the current directory . part of your LOAD_PATH. I have a non-trivial number of Rakefiles that assume that . is part of the LOAD_PATH, so this broke them. Was there a particular justification for doing this?
As for a fix, adding $: << "." everywhere works, but seems incredibly hacky and ...
I am writing a rake task which, at one point, uses a custom YAML file import method to seed the database.
The rake task looks like:
desc "Seed the database with production/ data."
task :production => :environment do
import_yaml 'seed/production'
end
At one point in the import code, I have:
ActiveRecord::Base.transaction do
...
Rake allows for the following syntax:
task :my_task, :arg1, :arg2 do |t, args|
puts "Args were: #{args}"
end
I'd like to be able to do the same, but with RSpecs SpecTask.
The following unfortunately fails:
desc "Run example with argument"
SpecTask.new('my_task'), :datafile do |t, args|
t.spec_files = FileList['*_spec.rb -datafil...
Hello,
I am currently using the delayed_job gem and I was wondering how to run a rake task every 5 minutes.
I want to run "rake ts:reindex RAILS_ENV=production" every 5 minutes but I'm not sure where to start. I really don't have much more I can say about this because I am VERY inexperienced in this area of rails development.
...
So I have a CommonAssemblyInfo.cs linked into all the projects in my solution and is dynamically generated by my rake/albacore scripts which is not checked into source control.
I also have a CommonAssemblyInfo.cs.local for use when there is no ruby available, mainly to be used by devs.
Is it possible to have a msbuild task or something...
Hi,
I want to know if there is a short way to do the migrations down equivalent to rake db:migrate (for the migrations up).
Instead of doing : rake db:migrate:up VERSION=1, rake db:migrate:up VERSION=2, ... we can do : rake db:migrate!
But for : rake db:migrate:down VERSION=10, rake db:migrate:down VERSION=..., rake db:migrate:down VERS...
I have a bunch of rake building tasks.
They each have unique input / output properties, but the majority of the properties I set on the tasks are the same each time. Currently I'm doing that via simple repetition like this:
task :buildThisModule => "bin/modules/thisModule.swf"
mxmlc "bin/modules/thisModule.swf" do |t|
t.input = "s...
I run rake and I get this error. What's that supposed to mean? Sorry I'm newbie to RoR sb please help. Thanks a lot.
undefined method `reserved=' for #<FriendlyId::ActiveRecordAdapter::Configuration:0x2b1ae5c2ec70>
...
Given a Rakefile that executes some RSpec tests by way of a Spec::Rake::SpecTask, how can I programmatically determine the number of tests that passed, failed, and are pending once the task that ran the tests is finished?
...
we tried to install rake on our pc but there were following errors.. We even tried updating gems but in vain. We need to run some tasks on rake and dont know how to go abt it.
C:\Documents and Settings\nemanich\My Documents\gems>gem install rake-compi 0
.7.0.gem
ERROR: http://gems.rubyforge.org/ does not appear to be a repository
ER...
I am running 5.1 on Ubuntu 10.04, and the remote server is running 5.0.51, is this a problem?
Mysql::Error: Incorrect information in file: './user/schema_migrations.frm': SELECT version FROM schema_migrations
I should say that trying to install it gives the error of the package (mysql-server-5.0 referenced but not available). I believe...
Using a ruby file (or any rake facility) I need to find out if the user who executes my script is able to execute certain shell commands. In particular g++ etc. Hopefully system independent so if there is some g++.bat, g++.exe or just g++ (etc) it should say yes nevertheless, as long as its on the path and executable on the users system....
# rake db:migrate --trace
(in /www/rails_app)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
rake aborted!
getaddrinfo: Name or service not known
/usr/local/lib/ruby/gems/1.9.1/gems/postgres-pr-0.6.3/lib/postgres-pr/connection.rb:165:in `initialize'
/usr/local/lib/ruby/ge...
When ever I run make I get this 'uninitialized constant RDoc::RDoc' error
rake -T
(in Main)
rake aborted!
uninitialized constant RDoc::RDoc
C:/Ruby186/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile'
(See full trace by running task with --trace)
--edit
Running --trace it ...