lib/guard/steering.rb
def run_on_removals(paths)
      paths.each do |path|
        output_folder = @options[:output_folder] || File.dirname(path)
        fileString = output_folder + "/" + File.basename(path) + ".js"
        File.delete(fileString) if File.exists?(fileString)
        UI.info "Guard::Steering deleted #{File.basename(path)}.js from #{output_folder}" unless @options[:quiet]
      end
    end
# Called on file(s) deletions that the Guard watches.
# @param [Array<String>] paths the deleted files or paths
# @raise [:task_has_failed] when run_on_change has failed
Called on file(s) deletions that the Guard watches.
Called on file ( s ) deletions that the Guard watches .
def run_on_removals(paths)
      paths.each do |path|
        output_folder = @options[:output_folder] || File.dirname(path)
        fileString = output_folder + "/" + File.basename(path) + ".js"
        File.delete(fileString) if File.exists?(fileString)
        UI.info "Guard::Steering deleted #{File.basename(path)}.js from #{output_folder}" unless @options[:quiet]
      end
    end
def run_on_removals ( paths ) paths . each do | path | output_folder = @options [ :output_folder ] || File . dirname ( path ) fileString = output_folder + "/" + File . basename ( path ) + ".js" File . delete ( fileString ) if File . exists? ( fileString ) UI . info "Guard::Steering deleted #{File.basename(path)}.js from #{output_folder}" unless @options [ :quiet ] end end
Called on file(s) deletions that the Guard watches.
Called on file ( s ) deletions that the Guard watches .
[:task_has_failed] when run_on_change has failed
[ : task_has_failed ] when run_on_change has failed
paths
paths the deleted files or paths
paths the deleted files or paths