Sha256: a5750e19b97934232402c02d9f89389bb26017406d4fed83baa4015a29c7027b

Contents?: true

Size: 197 Bytes

Versions: 6

Compression:

Stored size: 197 Bytes

Contents

#!/usr/bin/env ruby

require "dbus"

d = if ARGV.member?("--system")
      DBus::SystemBus.instance
    else
      DBus::SessionBus.instance
    end
d.proxy.ListNames[0].each { |n| puts "\t#{n}" }

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ruby-dbus-0.17.0 examples/utils/listnames.rb
ruby-dbus-0.16.0 examples/utils/listnames.rb
ruby-dbus-0.15.0 examples/utils/listnames.rb
ruby-dbus-0.14.1 examples/utils/listnames.rb
ruby-dbus-0.14.0 examples/utils/listnames.rb
ruby-dbus-0.13.0 examples/utils/listnames.rb