Sha256: 5a4857ddb11edcfe48426d031dc43f1f482d1e9ff3adfa897c876eee36e0a936

Contents?: true

Size: 271 Bytes

Versions: 6

Compression:

Stored size: 271 Bytes

Contents

module RequirejsOptimizer

  module Step

    class Finalize < Base

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

    end

  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
requirejs_optimizer-0.4.2 lib/requirejs_optimizer/step/finalize.rb
requirejs_optimizer-0.3.2 lib/requirejs_optimizer/step/finalize.rb
requirejs_optimizer-0.4.1 lib/requirejs_optimizer/step/finalize.rb
requirejs_optimizer-0.2.0 lib/requirejs_optimizer/step/finalize.rb
requirejs_optimizer-0.1.0 lib/requirejs_optimizer/step/finalize.rb
requirejs_optimizer-0.0.5 lib/requirejs_optimizer/step/finalize.rb