Mailinglist Archive: yast-devel (36 mails)

< Previous Next >
Re: [yast-devel] Yast webservice - sharing .rake files
  • From: Duncan Mac-Vicar Prett <dmacvicar@xxxxxxx>
  • Date: Fri, 29 May 2009 15:00:05 +0200
  • Message-id: <4A1FDC55.8070408@xxxxxxx>
Ladislav Slezak wrote:
Actually it would be better if we had 'package' and 'package-local' tasks,
just like
in Yast modules. Unfortunately rake doesn't allow to rename a task and
Rake::PackageTask doesn't accept any parameter to change the default task
name.
(IMO it's a bug or missing feature, e.g. Rake::TestTask allows to name the
test task
as you wish.)

no but you can define a new task than uses Rake:: something to run
another task, or aliasing it somehow?

def alias_task(new_name, old_name)
Rake::Task::TASKS[new_name.to_s] =
Rake::Task::TASKS.delete(old_name.to_s)
end


--
Duncan Mac-Vicar P. - Engineering Manager, YaST
SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg)

--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >