# File lib/chef/provider/mdadm.rb, line 77 def action_stop if @current_resource.exists command = "yes | mdadm --stop #{@new_resource.raid_device}" Chef::Log.debug("#{@new_resource} mdadm command: #{command}") shell_out!(command) Chef::Log.info("#{@new_resource} stopped raid device (#{@new_resource.raid_device})") @new_resource.updated_by_last_action(true) else Chef::Log.debug("#{@new_resource} raid device doesn't exist (#{@new_resource.raid_device}) - not stopping") end end