class AutomateIt::AddressManager::SunOS
AddressManager::SunOS¶ ↑
A SunOS-specific driver for the AddressManager provides complete support for querying, adding and removing addresses.
Public Class Methods
token()
click to toggle source
# File lib/automateit/address_manager/sunos.rb, line 6 def self.token :sunos end
Public Instance Methods
add(opts)
click to toggle source
See AddressManager#add
# File lib/automateit/address_manager/sunos.rb, line 19 def add(opts) _add_helper(opts) do |opts| interpreter.sh("ifconfig %s plumb" % _interface_and_label(opts)) interpreter.sh(_ifconfig_helper(:add, opts)) end end
remove(opts)
click to toggle source
See AddressManager#remove
# File lib/automateit/address_manager/sunos.rb, line 27 def remove(opts) _remove_helper(opts) do |opts| interpreter.sh(_ifconfig_helper(:remove, opts)) interpreter.sh("ifconfig %s unplumb" % _interface_and_label(opts)) true end end