module Thor::Actions
def remove_file(path, config={})
remove_file 'app/controllers/application_controller.rb'
remove_file 'README'
==== Example
config
path
==== Parameters
Removes a file at the given location.
def remove_file(path, config={}) return unless behavior == :invoke path = File.expand_path(path, destination_root) say_status :remove, relative_to_original_destination_root(path), config.fetch(:verbose, true) ::FileUtils.rm_rf(path) if !options[:pretend] && File.exists?(path) end