Sha256: 3dc2bdd0a3917e8762726ae1d086a0f857d7f0f75e6da977fdfd0b0a5f4d0b53

Contents?: true

Size: 659 Bytes

Versions: 2

Compression:

Stored size: 659 Bytes

Contents

class AssetCopierGenerator < Rails::Generator::NamedBase
  def manifest
    record do |m|
      m.directory "vendor/plugins/#{file_name}/tasks"
      m.directory "vendor/plugins/#{file_name}/lib/#{file_name}"
      
      m.template "init.rb.erb", "vendor/plugins/#{file_name}/init.rb"
      m.template "install.rb.erb", "vendor/plugins/#{file_name}/install.rb"
      m.template "asset_copier.rake.erb", "vendor/plugins/#{file_name}/tasks/asset_copier.rake"
      m.template "asset_copier.rb.erb", "vendor/plugins/#{file_name}/lib/#{file_name}/asset_copier.rb"
      
      m.file "deleted_files", "vendor/plugins/#{file_name}/deleted_files"
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
pelargir-asset_copier_generator-0.5 asset_copier_generator.rb
asset_copier_generator-0.5 asset_copier_generator.rb