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

Version Path
tdiary-5.3.0 lib/tdiary/tasks/assets.rake
tdiary-5.2.4 lib/tdiary/tasks/assets.rake
tdiary-5.2.3 lib/tdiary/tasks/assets.rake
tdiary-5.2.2 lib/tdiary/tasks/assets.rake
tdiary-5.2.1 lib/tdiary/tasks/assets.rake
tdiary-5.2.0 lib/tdiary/tasks/assets.rake
tdiary-5.1.7 lib/tdiary/tasks/assets.rake
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/lib/tdiary/tasks/assets.rake
tdiary-5.1.6 lib/tdiary/tasks/assets.rake
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/lib/tdiary/tasks/assets.rake
tdiary-5.1.5 lib/tdiary/tasks/assets.rake
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/lib/tdiary/tasks/assets.rake
tdiary-5.1.4 lib/tdiary/tasks/assets.rake
tdiary-5.1.3 lib/tdiary/tasks/assets.rake
tdiary-5.1.2 lib/tdiary/tasks/assets.rake
tdiary-5.1.2 vendor/bundle/ruby/2.6.0/gems/tdiary-5.0.14/lib/tdiary/tasks/assets.rake
tdiary-5.1.1 vendor/bundle/ruby/2.6.0/gems/tdiary-5.0.14/lib/tdiary/tasks/assets.rake
tdiary-5.1.1 lib/tdiary/tasks/assets.rake
tdiary-5.1.0 lib/tdiary/tasks/assets.rake
tdiary-5.0.14 lib/tdiary/tasks/assets.rake