Sha256: 80ae35cd4a4d5efee59b0ecd0b6c9f581283180483a9580fc7b2f736d729d3cd

Contents?: true

Size: 413 Bytes

Versions: 2

Compression:

Stored size: 413 Bytes

Contents

require 'fileutils'
require 'TerraformDevKit/command'
require 'TerraformDevKit/os'

module TerraformDevKit::ExtendedFileUtils
  def self.rm_rf(list, options = {})
    if TerraformDevKit::OS.host_os == 'windows'
      windows_path = TerraformDevKit::OS.convert_to_local_path(list)
      TerraformDevKit::Command.run("rmdir /s/q \"#{windows_path}\"")
    else
      FileUtils.rm_rf(list, options)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
TerraformDevKit-0.3.4 lib/TerraformDevKit/extended_file_utils.rb
TerraformDevKit-0.3.2 lib/TerraformDevKit/extended_file_utils.rb