Class: RequirejsOptimizer::Step::Finalize

Inherits:
Base
  • Object
show all
Defined in:
lib/requirejs_optimizer/step/finalize.rb

Instance Method Summary collapse

Methods inherited from Base

#to_proc

Instance Method Details

#performObject



7
8
9
10
# File 'lib/requirejs_optimizer/step/finalize.rb', line 7

def perform(*)
  FileUtils.rm_r(Rails.root.join("public/assets"))
  FileUtils.cp_r(RequirejsOptimizer.target_dir.to_s, Rails.root.join("public/assets"))
end