Sha256: 046b70e4a0cdb59519c45449e069e7a242b2810c116dcbb2620ede66db031c1d
Contents?: true
Size: 1.22 KB
Versions: 23
Compression:
Stored size: 1.22 KB
Contents
require 'puppet/network/handler' network = Puppet::Util::Reference.newreference :network, :depth => 2, :doc => "Available network handlers and clients" do ret = "" Puppet::Network::Handler.subclasses.sort { |a,b| a.to_s <=> b.to_s }.each do |name| handler = Puppet::Network::Handler.handler(name) next if ! handler.doc or handler.doc == "" interface = handler.interface ret += h(name, 2) ret += scrub(handler.doc) ret += "\n\n" ret += option(:prefix, interface.prefix) ret += option(:side, handler.side.to_s.capitalize) ret += option(:methods, interface.methods.collect { |ary| ary[0] }.join(", ") ) ret += "\n\n" end ret end network.header = " This is a list of all Puppet network interfaces. Each interface is implemented in the form of a client and a handler; the handler is loaded on the server, and the client knows how to call the handler's methods appropriately. Most handlers are meant to be started on the server, usually within `puppet master`, and the clients are mostly started on the client, usually within `puppet agent`. You can find the server-side handler for each interface at `puppet/network/handler/<name>.rb` and the client class at `puppet/network/client/<name>.rb`. "
Version data entries
23 entries across 23 versions & 1 rubygems