Sha256: 2e1f98b464e37ddb298a95a9d30f8e398ba17a56575e19b6e1ae65584813bfcb
Contents?: true
Size: 385 Bytes
Versions: 16
Compression:
Stored size: 385 Bytes
Contents
module MKIt module InterfaceHelper module_function def create(name:, ctype:) %x{ip tuntap add mode #{ctype} #{name}} end def remove(name:, ctype:) %x{ip tuntap del mode #{ctype} #{name}} end def up(name:, ip:, mask:) %x{ifconfig #{name} #{ip}/#{mask} up} end def down(name:) %x{ifconfig #{name} 0.0.0.0 down} end end end
Version data entries
16 entries across 16 versions & 1 rubygems