# class Chef::Resource::Ifconfig

### Public Class Methods

new(name, run_context=nil) click to toggle source
Calls superclass method Chef::Resource.new

    # 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

### Public Instance Methods

bcast(arg=nil) click to toggle source

    # File lib/chef/resource/ifconfig.rb, line 81
    def bcast(arg=nil)
      set_or_return(
        :bcast,
        arg,
        :kind_of => String
      )
    end

bootproto(arg=nil) click to toggle source

    # File lib/chef/resource/ifconfig.rb, line 129
    def bootproto(arg=nil)
      set_or_return(
        :bootproto,
        arg,
        :kind_of => String
      )
    end

device(arg=nil) click to toggle source

    # File lib/chef/resource/ifconfig.rb, line 57
    def device(arg=nil)
      set_or_return(
        :device,
        arg,
        :kind_of => String
      )
    end

hwaddr(arg=nil) click to toggle source

    # File lib/chef/resource/ifconfig.rb, line 65
    def hwaddr(arg=nil)
      set_or_return(
        :hwaddr,
        arg,
        :kind_of => String
      )
    end

inet_addr(arg=nil) click to toggle source

    # File lib/chef/resource/ifconfig.rb, line 73
    def inet_addr(arg=nil)
      set_or_return(
        :inet_addr,
        arg,
        :kind_of => String
      )
    end

mask(arg=nil) click to toggle source

    # File lib/chef/resource/ifconfig.rb, line 89
    def mask(arg=nil)
      set_or_return(
        :mask,
        arg,
        :kind_of => String
      )
    end

metric(arg=nil) click to toggle source

    # File lib/chef/resource/ifconfig.rb, line 105
    def metric(arg=nil)
      set_or_return(
        :metric,
        arg,
        :kind_of => String
      )
    end

mtu(arg=nil) click to toggle source

    # File lib/chef/resource/ifconfig.rb, line 97
    def mtu(arg=nil)
      set_or_return(
        :mtu,
        arg,
        :kind_of => String
      )
    end

network(arg=nil) click to toggle source

    # File lib/chef/resource/ifconfig.rb, line 121
    def network(arg=nil)
      set_or_return(
        :network,
        arg,
        :kind_of => String
      )
    end

onboot(arg=nil) click to toggle source

    # File lib/chef/resource/ifconfig.rb, line 113
    def onboot(arg=nil)
      set_or_return(
        :onboot,
        arg,
        :kind_of => String
      )
    end

onparent(arg=nil) click to toggle source

    # File lib/chef/resource/ifconfig.rb, line 137
    def onparent(arg=nil)
      set_or_return(
        :onparent,
        arg,
        :kind_of => String
      )
    end

target(arg=nil) click to toggle source

    # File lib/chef/resource/ifconfig.rb, line 49
    def target(arg=nil)
      set_or_return(
        :target,
        arg,
        :kind_of => String
      )
    end