# File lib/chef/resource/ifconfig.rb, line 30 def initialize(name, run_context=nil) super @resource_name = :ifconfig @target = name @action = :add @allowed_actions.push(:add, :delete, :enable, :disable) @hwaddr = nil @mask = nil @inet_addr = nil @bcast = nil @mtu = nil @metric = nil @device = nil @onboot = nil @network = nil @bootproto = nil @onparent = nil end
# File lib/chef/resource/ifconfig.rb, line 81 def bcast(arg=nil) set_or_return( :bcast, arg, :kind_of => String ) end
# File lib/chef/resource/ifconfig.rb, line 129 def bootproto(arg=nil) set_or_return( :bootproto, arg, :kind_of => String ) end
# File lib/chef/resource/ifconfig.rb, line 57 def device(arg=nil) set_or_return( :device, arg, :kind_of => String ) end
# File lib/chef/resource/ifconfig.rb, line 65 def hwaddr(arg=nil) set_or_return( :hwaddr, arg, :kind_of => String ) end
# File lib/chef/resource/ifconfig.rb, line 73 def inet_addr(arg=nil) set_or_return( :inet_addr, arg, :kind_of => String ) end
# File lib/chef/resource/ifconfig.rb, line 89 def mask(arg=nil) set_or_return( :mask, arg, :kind_of => String ) end
# File lib/chef/resource/ifconfig.rb, line 105 def metric(arg=nil) set_or_return( :metric, arg, :kind_of => String ) end
# File lib/chef/resource/ifconfig.rb, line 97 def mtu(arg=nil) set_or_return( :mtu, arg, :kind_of => String ) end
# File lib/chef/resource/ifconfig.rb, line 121 def network(arg=nil) set_or_return( :network, arg, :kind_of => String ) end
# File lib/chef/resource/ifconfig.rb, line 113 def onboot(arg=nil) set_or_return( :onboot, arg, :kind_of => String ) end
Generated with the Darkfish Rdoc Generator 2.