Sha256: 054239b83d4c2c2b7e54b531d9a22ec84bf7f29f395673dc1df3756ac1d20256
Contents?: true
Size: 426 Bytes
Versions: 40
Compression:
Stored size: 426 Bytes
Contents
namespace :assets do desc "copy assets files" task :copy do require 'fileutils' assets_path = File.dirname(__FILE__) + '/../../../public/assets' FileUtils.mkdir_p assets_path FileList['{js,theme}/*'].each do |file| FileUtils.cp_r(file, "#{assets_path}/#{Pathname.new(file).basename}") end end end # Local Variables: # mode: ruby # indent-tabs-mode: t # tab-width: 3 # ruby-indent-level: 3 # End: # vim: ts=3
Version data entries
40 entries across 30 versions & 1 rubygems