Sha256: d07b8e83a50f5e82f17d3550e4802c3f3a379ba0c0fe4db030afee1b58123bcc

Contents?: true

Size: 401 Bytes

Versions: 14

Compression:

Stored size: 401 Bytes

Contents

require 'generators/helpers/file_helper'
module LolitaFileUpload
  module Generators
    class AssetsGenerator < Rails::Generators::Base
      include Lolita::Generators::FileHelper
      desc "Copy all from public directory to project public directory."
      def copy_all
        root=File.expand_path("../../../../",__FILE__)
        copy_dir("public",:root=>root)
      end      
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
lolita-file-upload-0.3.0.2 lib/generators/lolita_file_upload/assets_generator.rb
lolita-file-upload-0.3.0.1 lib/generators/lolita_file_upload/assets_generator.rb
lolita-file-upload-0.3.0 lib/generators/lolita_file_upload/assets_generator.rb
lolita-file-upload-0.2.9 lib/generators/lolita_file_upload/assets_generator.rb
lolita-file-upload-0.2.8 lib/generators/lolita_file_upload/assets_generator.rb
lolita-file-upload-0.2.7 lib/generators/lolita_file_upload/assets_generator.rb
lolita-file-upload-0.2.6 lib/generators/lolita_file_upload/assets_generator.rb
lolita-file-upload-0.2.5 lib/generators/lolita_file_upload/assets_generator.rb
lolita-file-upload-0.2.4 lib/generators/lolita_file_upload/assets_generator.rb
lolita-file-upload-0.2.3 lib/generators/lolita_file_upload/assets_generator.rb
lolita-file-upload-0.2.2 lib/generators/lolita_file_upload/assets_generator.rb
lolita-file-upload-0.1.4 lib/generators/lolita_file_upload/assets_generator.rb
lolita-file-upload-0.1.3 lib/generators/lolita_file_upload/assets_generator.rb
lolita-file-upload-0.1.2 lib/generators/lolita_file_upload/assets_generator.rb