Sha256: 8a8e6e9d9698dc3664a9b9942e735bd974e28bb14247f4ca3477d6aaa9424385

Contents?: true

Size: 496 Bytes

Versions: 1

Compression:

Stored size: 496 Bytes

Contents

#!/usr/bin/env ruby

require 'rails_cleaner'

rails_cleaner = RailsCleaner.new

rails_cleaner.set_files_to_delete RailsCleaner::TO_DELETE_LIST

if rails_cleaner.files_to_delete.empty?
  puts 'No files to delete'
  exit
end

puts 'Please select y/n to delete each file'

rails_cleaner.files_to_delete.each do |file|
  puts file.colorize :red
  input = gets.chomp
  if input.downcase == 'y'
    File.delete file
  end
end

rails_cleaner.remove_to_delete_list
rails_cleaner.clear_tracked_files_list

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_cleaner-0.0.6 exe/rails_cleaner_delete