THIS IS ALPHA STUFF :)
see TODOs
This library provides a Ruby API to NetworkManager using its DBus Interface.
Written using the NetworkManager DBus API Documentation v0.9
Please have a look at Documentation
Or build it your on your own using yard
gem, running the command from projet dir:
yardoc
Please make sure that you have dbus
and networkmanager
installed on the machine
were you want to use this library. Remote DBus wasn't tested.
gem install networkmanager-dbus
At the moment this is incomplete. So for now,
please have a look at the examples
folder and the specs
.
require 'networkmanager-dbus'
NetworkManager.devices.first['Interface'] # => 'eth0' or something similar
NetworkManager.settings.hostname # => 'your.host.name'
Development currently happens from my OSX machine where no dbus/networkmanager is running. Therefore, i hacked some scripts together to be able to run rspec over the wire.
On the remote-machine (linux, dbus, networkmanager)
`script/spec_server`
On the local-machine (osx)
`guard`
to the guys from IRC channel #nm at irc.freenode.net
- dbcw
- jklimes
Copyright 2011 Jens Bissinger. All rights reserved. MIT-LICENSE