ruby-lxc 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ext/lxc/lxc.c +13 -14
- data/lib/lxc/version.rb +1 -1
- metadata +34 -2
data/ext/lxc/lxc.c
CHANGED
@@ -51,20 +51,6 @@ struct container_data {
|
|
51
51
|
struct lxc_container *container;
|
52
52
|
};
|
53
53
|
|
54
|
-
struct bdev_specs {
|
55
|
-
char *fstype;
|
56
|
-
uint64_t fssize; // fs size in bytes
|
57
|
-
struct {
|
58
|
-
char *zfsroot;
|
59
|
-
} zfs;
|
60
|
-
struct {
|
61
|
-
char *vg;
|
62
|
-
char *lv;
|
63
|
-
char *thinpool; // lvm thin pool to use, if any
|
64
|
-
} lvm;
|
65
|
-
char *dir;
|
66
|
-
};
|
67
|
-
|
68
54
|
static char **
|
69
55
|
ruby_to_c_string_array(VALUE rb_arr)
|
70
56
|
{
|
@@ -440,6 +426,15 @@ container_running_p(VALUE self)
|
|
440
426
|
* container.state
|
441
427
|
*
|
442
428
|
* Returns a symbol representing the state of the container.
|
429
|
+
*
|
430
|
+
* * +:stopped+
|
431
|
+
* * +:starting+
|
432
|
+
* * +:running+
|
433
|
+
* * +:stopping+
|
434
|
+
* * +:aborting+
|
435
|
+
* * +:freezing+
|
436
|
+
* * +:frozen+
|
437
|
+
* * +:thawed+
|
443
438
|
*/
|
444
439
|
static VALUE
|
445
440
|
container_state(VALUE self)
|
@@ -1277,6 +1272,10 @@ container_config_path(VALUE self)
|
|
1277
1272
|
* container.keys(key)
|
1278
1273
|
*
|
1279
1274
|
* Returns a list of valid sub-keys for the given configuration key.
|
1275
|
+
*
|
1276
|
+
* Keys can be in the format 'lxc.network.<idx>', (eg. 'lxc.network.0',
|
1277
|
+
* 'lxc.network.1'). The result shows which keys are valid according to
|
1278
|
+
* type of network interface.
|
1280
1279
|
*/
|
1281
1280
|
static VALUE
|
1282
1281
|
container_keys(VALUE self, VALUE rb_key)
|
data/lib/lxc/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-lxc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,8 +9,40 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-06-
|
12
|
+
date: 2014-06-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rdoc
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rdoc-data
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
14
46
|
- !ruby/object:Gem::Dependency
|
15
47
|
name: rake-compiler
|
16
48
|
requirement: !ruby/object:Gem::Requirement
|