Sha256: 574bb9e9474340f357ae785691ef0dc83de8651f316bcb6fb23682c038ffc146
Contents?: true
Size: 438 Bytes
Versions: 21
Compression:
Stored size: 438 Bytes
Contents
class PapermillAssetsGenerator < Rails::Generator::Base def initialize(args, options = {}) end def manifest puts "Copying papermill assets to your public directory..." FileUtils.rm_rf("#{File.join(RAILS_ROOT)}/public/papermill/") FileUtils.cp_r( Dir[File.join(File.dirname(__FILE__), '../../public')], File.join(RAILS_ROOT) ) puts "Done! Check public/papermill/ for result." exit end end
Version data entries
21 entries across 21 versions & 1 rubygems
Version | Path |
---|---|
papermill-0.13.1 | generators/papermill_assets/papermill_assets_generator.rb |