From d87c3abc2c612584455511cdf44e563a2e92a754 Mon Sep 17 00:00:00 2001 From: NiR- Date: Mon, 9 Jun 2014 05:24:09 +0200 Subject: [PATCH] Adding all possible states in the doc and clarifying what keys method does. --- ext/lxc/lxc.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ext/lxc/lxc.c b/ext/lxc/lxc.c index b43732c..f2c2048 100644 --- a/ext/lxc/lxc.c +++ b/ext/lxc/lxc.c @@ -440,6 +440,15 @@ container_running_p(VALUE self) * container.state * * Returns a symbol representing the state of the container. + * + * * +:stopped+ + * * +:starting+ + * * +:running+ + * * +:stopping+ + * * +:aborting+ + * * +:freezing+ + * * +:frozen+ + * * +:thawed+ */ static VALUE container_state(VALUE self) @@ -1277,6 +1286,9 @@ container_config_path(VALUE self) * container.keys(key) * * Returns a list of valid sub-keys for the given configuration key. + * Support 'lxc.network.', i.e. 'lxc.network.0' + * This is an intelligent result to show which keys are valid given + * the type of nic it is */ static VALUE container_keys(VALUE self, VALUE rb_key)