spec/support/file_manager.rb
# TODO: move this constant somewhere more central to the gem
move this constant somewhere more central to the gem
move this constant somewhere more central to the gem
def remove_files_and_directories(*additional_files_and_directories)
    FileUtils.rm_rf(
      RAILS_SERVICE_DIRECTORIES.map { |path| "#{Rails.root}/#{path}" }
    )
    additional_files_and_directories.each do |file_or_directory|
      FileUtils.remove_file(file_or_directory) if File.file?(file_or_directory)
      FileUtils.rmdir(file_or_directory) if File.directory?(file_or_directory)
    end
  end
def remove_files_and_directories ( * additional_files_and_directories ) FileUtils . rm_rf ( RAILS_SERVICE_DIRECTORIES . map { | path | "#{Rails.root}/#{path}" } ) additional_files_and_directories . each do | file_or_directory | FileUtils . remove_file ( file_or_directory ) if File . file? ( file_or_directory ) FileUtils . rmdir ( file_or_directory ) if File . directory? ( file_or_directory ) end end
TODO: move this constant somewhere more central to the gem
TODO : move this constant somewhere more central to the gem
additional_files_and_directories
<not_specific>