ref: refs/heads/master
commit 6590b5efdb0c5a1cd07c7dae112de14cbe564c99
Author: Duncan Mac-Vicar P
Date: Tue Aug 11 18:25:10 2009 +0200
Use ruby chdir
---
Rakefile | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/Rakefile b/Rakefile
index 0b55870..0cac556 100644
--- a/Rakefile
+++ b/Rakefile
@@ -17,12 +17,16 @@ task :default => :test
%w(test rdoc pgem package release install install_policies check_syntax package-local buildrpm buildrpm-local test:test:rcov).each do |task_name|
desc "Run #{task_name} task for all projects"
+
task task_name do
PROJECTS.each do |project|
- system %(cd #{project} && #{env} #{$0} #{task_name})
- raise "Error on execute task #{task_name} on #{project}" if $?.exitstatus != 0
+ Dir.chdir(project) do
+ system %(#{env} #{$0} #{task_name})
+ raise "Error on execute task #{task_name} on #{project}" if $?.exitstatus != 0
+ end
end
end
+
end
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org