# class Chef::Resource::Mdadm

### Public Class Methods

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

    # File lib/chef/resource/mdadm.rb, line 30
    def initialize(name, run_context=nil)
      super
      @resource_name = :mdadm

      @chunk = 16
      @devices = []
      @exists = false
      @level = 1
      @metadata = "0.90"
      @bitmap = nil
      @raid_device = name

      @action = :create
      @allowed_actions.push(:create, :assemble, :stop)
    end

### Public Instance Methods

bitmap(arg=nil) click to toggle source

    # File lib/chef/resource/mdadm.rb, line 86
    def bitmap(arg=nil)
      set_or_return(
        :bitmap,
        arg,
        :kind_of => [ String ]
      )
    end

chunk(arg=nil) click to toggle source

    # File lib/chef/resource/mdadm.rb, line 46
    def chunk(arg=nil)
      set_or_return(
        :chunk,
        arg,
        :kind_of => [ Integer ]
      )
    end

devices(arg=nil) click to toggle source

    # File lib/chef/resource/mdadm.rb, line 54
    def devices(arg=nil)
      set_or_return(
        :devices,
        arg,
        :kind_of => [ Array ]
      )
    end

exists(arg=nil) click to toggle source

    # File lib/chef/resource/mdadm.rb, line 62
    def exists(arg=nil)
      set_or_return(
        :exists,
        arg,
        :kind_of => [ TrueClass, FalseClass ]
      )
    end

level(arg=nil) click to toggle source

    # File lib/chef/resource/mdadm.rb, line 70
    def level(arg=nil)
      set_or_return(
        :level,
        arg,
        :kind_of => [ Integer ]
      )
    end

metadata(arg=nil) click to toggle source

    # File lib/chef/resource/mdadm.rb, line 78
    def metadata(arg=nil)
      set_or_return(
        :metadata,
        arg,
        :kind_of => [ String ]
      )
    end

raid_device(arg=nil) click to toggle source

    # File lib/chef/resource/mdadm.rb, line 94
    def raid_device(arg=nil)
      set_or_return(
        :raid_device,
        arg,
        :kind_of => [ String ]
      )
    end