Commit Graph
33 Commits
Author SHA1 Message Date
Martin Willi 48633b1844 dumm: Fix -Wformat warning in ruby extension
In recent ruby versions, extensions get built with -Wformat. As we use custom
printf specifiers, that does not work for us. As there does not seem to be a
reliable way to override -Wformat, we use a variable for the format string,
which prevents gcc from doing the -Wformat check in that particular situation.
2014-12-10 14:29:19 +01:00
Martin Willi 9128666812 dumm: Undefine _GNU_SOURCE before including <ruby.h>, as it usually redefines it 2014-07-09 10:53:36 +02:00
Tobias Brunner 34d3bfcf14 lib: Add global config namespace 2014-02-12 14:34:31 +01:00
Tobias Brunner 1ee1163214 dumm: Sort templates by name 2013-07-15 14:37:05 +02:00
Tobias Brunner caccc0e8cc Avoid that ruby 1.9 redefines snprintf(3) etc.
Otherwise our custom printf specifiers won't work.
2012-12-10 11:41:37 +01:00
Tobias Brunner 12e70a7efc Properly initialize linked list when enumerating interface addresses 2012-12-10 09:47:46 +01:00
Tobias Brunner 6a25122bfc rb_cvar_set() takes three arguments in Ruby 1.9 2012-12-10 09:47:46 +01:00
Tobias Brunner f05b427265 Moved debug.[ch] to utils folder 2012-10-24 16:00:51 +02:00
Tobias Brunner 12642a6831 Moved data structures to new collections subfolder 2012-10-24 16:00:49 +02:00
Martin Willi a24f83e97a Use "-include config.h" when building ruby dumm extension 2012-07-11 18:07:19 +02:00
Tobias Brunner 50937e8b80 DUMM: Allow addresses to be configured with net prefix. 2011-07-29 12:14:02 +02:00
Tobias Brunner d4b8f98c1a Store the exit code of executed commands in Dumm::Guest.execstatus.
Also, no exception is risen for failed exec calls, anymore.
2010-10-12 15:41:17 +02:00
Tobias Brunner d679266fe1 Map the guests to a ruby hash to avoid creating new ruby objects on each call of Guest.each or Guest[]. 2010-10-12 15:04:38 +02:00
Tobias Brunner 9b0847dd9a Exposed the mutli-overlay functionality in the ruby bindings.
Overlays can be added to individual guests (which overlays exactly the
supplied directory) or to all guests (which overlays a subdirectory
with the guest's name to each guest).

The template functionality is provided as before.
2010-10-12 15:03:37 +02:00
Martin Willi f469754f7f Undef PACKAGE_BUG/URL of strongSwan before including ruby variants 2009-12-08 14:36:22 +01:00
Martin Willi 7daf5226b7 removed trailing spaces ([[:space:]]+$) 2009-09-04 13:46:09 +02:00
Martin Willi 66b8345f9f added generated extconf.rb to .gitignore, removed it from distribution 2009-05-25 15:45:05 +02:00
Tobias Brunner ad36ab252e Automatically build (and install) the DUMM Ruby extension. 2009-05-20 19:38:01 +02:00
Tobias Brunner 2d9ce480fa Enable building the DUMM Ruby extension in a VPATH build. 2009-05-20 19:38:01 +02:00
Martin Willi 5d47f284b8 list available templates using "template" alias 2009-05-11 17:20:01 +02:00
Martin Willi 47a9a48f5b ruby bindings for template enumerator 2009-05-11 17:19:36 +02:00
Martin Willi a4df55e363 added .gitignore files for dumm 2009-05-07 10:19:19 +02:00
Tobias Brunner 8c5d72cd0b removing svn keyword $Id$ from all files 2009-04-30 13:19:35 +00:00
Martin Willi 79f81838bc added template() shortcut 2009-04-07 17:58:23 +00:00
Martin Willi 8a7d32452c added Dumm.method_missing, allows direct invocation of guests/bridges 2009-04-07 17:54:15 +00:00
Martin Willi cf61575dc3 added booted?/boot methods 2009-04-07 17:13:44 +00:00
Martin Willi 801548155c use safe each() implementations, allowing delete() in block
implement Client.reset() in ruby
2009-04-07 14:56:19 +00:00
Martin Willi c4087a8e70 added a reset() method to Dumm and each client
identation cleanups
2009-04-07 14:22:02 +00:00
Martin Willi 61508be2f5 added a guest.mconsole() method to script mconsole (e.g. add additional conX=) 2008-10-15 14:47:52 +00:00
Martin Willi 405e8ecfe3 set guest-specific kernel parameters
removed memory setting, use mem= instead
2008-10-10 11:20:04 +00:00
Tobias Brunner 8bbc7ca710 * allow to load templates from arbitrary places
* changed implementation of guest?/iface?
2008-08-28 08:05:07 +00:00
Tobias Brunner ca4f63383c * guest#running?
* guest?, iface? (also Guest.include? resp. guest.include?)
 * easy accessors for guests and ifaces (Guest.sun instead of Guest["sun"] and guest.eth0 instead of guest["eth0"])
 * if a block is given for iface#add or iface#del then the change is only temporary while executing the block and gets reverted afterwards
2008-08-27 07:35:20 +00:00
Tobias Brunner e5d6f165fc * ruby extension extracted from irdumm
* guests do not shutdown anymore on SIGINT in irb
2008-08-07 14:56:54 +00:00