Sha256: bd6e8e83ec076480c3fd4f2b078f7b1aa0e5b3ae505c8766cd1fa04e5eaac2af

Contents?: true

Size: 418 Bytes

Versions: 16

Compression:

Stored size: 418 Bytes

Contents

module MailEngine
  class CopyResources < Rails::Generators::Base
    desc "Copy javascripts and css files to your application."
    source_root File.join(File.dirname(__FILE__))

    def copy_resources
      from = File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "..", "public"))
      to = File.expand_path(File.join(Rails.root, "public"))
      directory from, to
    end

  end # CreateMigration
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
mail_engine-0.1.15 lib/mail_engine/generators/copy_resources.rb
mail_engine-0.1.14 lib/mail_engine/generators/copy_resources.rb
mail_engine-0.1.13 lib/mail_engine/generators/copy_resources.rb
mail_engine-0.1.12 lib/mail_engine/generators/copy_resources.rb
mail_engine-0.1.11 lib/mail_engine/generators/copy_resources.rb
mail_engine-0.1.10 lib/mail_engine/generators/copy_resources.rb
mail_engine-0.1.9 lib/mail_engine/generators/copy_resources.rb
mail_engine-0.1.8 lib/mail_engine/generators/copy_resources.rb
mail_engine-0.1.7 lib/mail_engine/generators/copy_resources.rb
mail_engine-0.1.6 lib/mail_engine/generators/copy_resources.rb
mail_engine-0.1.5 lib/mail_engine/generators/copy_resources.rb
mail_engine-0.1.4 lib/mail_engine/generators/copy_resources.rb
mail_engine-0.1.3 lib/mail_engine/generators/copy_resources.rb
mail_engine-0.1.2 lib/mail_engine/generators/copy_resources.rb
mail_engine-0.1.1 lib/mail_engine/generators/copy_resources.rb
mail_engine-0.1.0 lib/mail_engine/generators/copy_resources.rb