lib/sass_spec/test.rb
# Deletes a directory. In interactive mode, prompts the user and returns
# `false` if they decide not to delete the directory.
Deletes a directory. In interactive mode, prompts the user and returns
`false` if they decide not to delete the directory.
Deletes a directory . In interactive mode prompts the user and returns ` false ` if they decide not to delete the directory .
def delete_dir!(dir)
    result = interact(:delete_test, :proceed) do |i|
      files = Dir.glob(File.join(dir, "**", "*"))
      i.prompt("The following files will be removed:\n  * " + files.join("\n  * "))
      i.choice('D', "Delete them.") do
        FileUtils.rm_rf(@test_case.folder)
      end
      i.choice('x', "I changed my mind.") do
      end
    end
    result == :proceed
  end
def delete_dir! ( dir ) result = interact ( :delete_test , :proceed ) do | i | files = Dir . glob ( File . join ( dir , "**" , "*" ) ) i . prompt ( "The following files will be removed:\n  * " + files . join ( "\n  * " ) ) i . choice ( 'D' , "Delete them." ) do FileUtils . rm_rf ( @test_case . folder ) end i . choice ( 'x' , "I changed my mind." ) do end end result == :proceed end
Deletes a directory.
Deletes a directory .
dir
<not_specific>