Mailinglist Archive: yast-devel (36 mails)

< Previous Next >
Re: [yast-devel] Yast webservice - sharing .rake files
  • From: Ladislav Slezak <lslezak@xxxxxxx>
  • Date: Fri, 22 May 2009 12:45:13 +0200
  • Message-id: <4A168239.1050102@xxxxxxx>
Ladislav Slezak wrote:

It's possible to redefine a task, but it's not simple,
see e.g.

Or we could use another approach, including of the predefined tasks
is done by this code (which must be in every plugin):

Dir["/srv/www/yastws/lib/tasks/webservice/*.rake"].each { |ext| load ext }

We could simply add an 'if' statement into the block and skip (not load)
the unwanted tasks without need to redefine them later...

This is a better solution.


Best Regards

Ladislav Slez√°k
Yast Developer
SUSE LINUX, s.r.o. e-mail: lslezak@xxxxxxx
Lihovarsk√° 1060/12 tel: +420 284 028 960
190 00 Prague 9 fax: +420 284 028 951
Czech Republic
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-devel+help@xxxxxxxxxxxx

< Previous Next >