Adding all possible states in the doc and clarifying what keys method does.

This commit is contained in:
NiR- 2014-06-09 05:24:09 +02:00 committed by Andre Nathan
parent 3de0541985
commit 25b91f2c7f

View file

@ -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,10 @@ container_config_path(VALUE self)
* container.keys(key)
*
* Returns a list of valid sub-keys for the given configuration key.
*
* Keys can be in the format 'lxc.network.<idx>', (eg. 'lxc.network.0',
* 'lxc.network.1'). The result shows which keys are valid according to
* type of network interface.
*/
static VALUE
container_keys(VALUE self, VALUE rb_key)