Commit graph

80 commits

Author SHA1 Message Date
Andrea C. Granata 695ee8f87b Allow creation of LXC with bdevspecs.
New Container#create accept 5 parameters:
container.create(template, bdevtype = nil, bdevspecs = {}, flags = 0, args = [])

Example:

myspec = { fstype: 'ext4', fssize: 32212254720, vgname: 'zephirworks_VG'}

c = LXC::Container.new('zephirworks_example')
c.create("ubuntu", "lvm", myspec)
2014-05-04 19:38:33 +02:00
Andre Nathan 312715d2aa Version 1.0.2 2014-03-29 11:41:03 -03:00
Andre Nathan 198851ebd2 Merge pull request #15 from jkeiser/args
Use default values for #start missing options
2014-03-27 14:46:20 -03:00
John Keiser 645833c77a Allow start(:single_arg => value) 2014-03-27 07:47:14 -07:00
Andre Nathan 8593a693ae Fix RETURN_WITHOUT_GVL macros 2014-03-27 09:01:33 -03:00
Andre Nathan a10124c8fa Style fixes 2014-03-26 17:48:49 -03:00
John Keiser e72d5103e3 Get new GVL code working on 1.8.7 2014-03-26 17:47:58 -03:00
John Keiser 6ba765e52e Get rid of warnings, use non-deprecated Ruby function 2014-03-26 17:47:58 -03:00
John Keiser 8514f53b99 Fix LXC.list_containers to release GIL 2014-03-26 17:47:58 -03:00
John Keiser acc636b1c8 Stop blocking ruby during long-running operations 2014-03-26 17:47:58 -03:00
Andre Nathan 0b4aa13121 Bump version to 1.0.1 2014-03-06 10:28:00 -03:00
Andre Nathan fd75ebc9a2 Don't use pointer after free() 2014-03-06 10:19:17 -03:00
Andre Nathan 7fcad3dba2 Version 1.0.0 2014-02-20 08:58:27 -03:00
Andre Nathan d74494e831 Add homepage to gemspec 2014-02-20 08:58:24 -03:00
Andre Nathan f553a33821 We have rdoc 2014-02-20 08:58:24 -03:00
Andre Nathan f57ba07492 Document :wait in the accepted options of #attach 2014-02-11 08:52:40 -02:00
Andre Nathan f3dc3e3de0 Ensure #stop is called if #shutdown fails in test 2014-02-11 08:45:58 -02:00
Andre Nathan a453b51005 Add Container#running_config_item 2014-01-28 15:08:10 -02:00
Andre Nathan 4a61f87c51 Define missing constants
LXC_CLONE_KEEPBDEVTYPE and LXC_CLONE_MAYBE_SNAPSHOT
2014-01-16 16:44:23 -02:00
Andre Nathan 4e46b12685 Merge pull request #7 from ranjib/fix_tests
Tests should not fail if there are pre-existing containers
2014-01-15 02:17:59 -08:00
Ranjib Dey a98bc364a3 tests should not fail if there are pre-existing containers 2014-01-15 00:49:23 -08:00
Andre Nathan 519b08a497 Some more info in README. Mention rdoc. 2014-01-14 09:48:19 -02:00
Andre Nathan 9a65ddf036 Use symbols for container states 2014-01-14 09:24:00 -02:00
Andre Nathan 3ff240462e Use assert_nothing_raised 2014-01-14 08:54:43 -02:00
Andre Nathan 0c3abf0de2 Remove LXC.default_config_path, add LXC.global_config_item
Follows lxc@593e84786e2b4709059989bee489deab5c923779
2014-01-14 08:51:22 -02:00
Andre Nathan 67dd08eeeb Merge pull request #6 from ranjib/fix_readme
Change readme to point new lxc repo
2014-01-10 04:05:59 -08:00
Ranjib Dey db04c99bd0 change readme to point new lxc repo 2014-01-09 14:37:17 -08:00
Andre Nathan 339de1a81a Support large bdevs on 32-bit
This change follows lxc@d659597e03725411c366c42dc02c64c0c35a167a.
2014-01-09 08:33:25 -02:00
Andre Nathan 97b544a041 Merge pull request #5 from ranjib/fix_extconfig
[BUGFIX] Drop shared library inside lxc folder
2014-01-03 18:49:30 -08:00
Ranjib Dey b077728c7d drop shared library inside lxc folder 2014-01-03 18:22:19 -08:00
Andre Nathan c1ade416d7 Merge pull request #3 from jeremiahsnapp/master
Add ability to set backingstore type when creating a container
2014-01-03 16:31:43 -08:00
Jeremiah Snapp 960d7b9975 Add ability to set backingstore type when creating a container 2014-01-03 19:01:06 -05:00
Andre Nathan 4611a1b107 Merge pull request #2 from ranjib/travis
Add travis integration
2013-12-28 16:21:52 -08:00
Ranjib Dey 57eb166681 add 1.8.7 to travis build 2013-12-27 12:18:42 -08:00
Andre Nathan 7b16ea1e3d Add (still incomplete) RDoc. 2013-12-27 15:44:24 -02:00
Ranjib Dey 1ca2d1d268 Config file for travis ci integration 2013-12-27 04:09:02 -08:00
Ranjib Dey 3e488b56be Add a few specs against LXC singleton methods 2013-12-26 09:03:56 -02:00
Andre Nathan f2a6812c80 Add Container#rename 2013-12-23 15:59:41 -02:00
Andre Nathan 03eae61c02 LXC_CLONE_COPYHOOKS is gone 2013-12-23 15:15:25 -02:00
Andre Nathan 7758bcd930 Merge pull request #5 from ranjib/docs
Add docs.. show usage etc.
2013-12-23 06:56:41 -08:00
Andre Nathan d8f5613034 Fix handling of missing options hash in #attach 2013-12-23 12:48:13 -02:00
Andre Nathan 71eb2623f3 Fix index variable signedness 2013-12-23 12:13:28 -02:00
Andre Nathan 9a7ff00380 Merge pull request #2 from ranjib/bundler_support
Add bundler support
2013-12-23 06:07:17 -08:00
Andre Nathan 9365da3111 Fix freeing list of running containers 2013-12-23 12:03:54 -02:00
Ranjib Dey 8b14947d96 add docs 2013-12-23 00:44:32 -08:00
Ranjib Dey 6065b23652 add bundler support 2013-12-16 12:30:12 -08:00
Andre Nathan dd6f1ba24d Ignore tmp and pkg directories 2013-12-06 15:01:28 -02:00
Andre Nathan 582a9952f5 Rename tests 2013-12-06 15:00:10 -02:00
Andre Nathan afb05f0ac9 Fix tests 2013-12-06 14:59:20 -02:00
Andre Nathan 4fc49d6526 Remove debug prints 2013-12-06 14:59:09 -02:00