Sha256: 8467501cde9a3770a7de416a8e92d31c8429fa72e9554c36135f9ef6e36bf9eb

Contents?: true

Size: 657 Bytes

Versions: 6

Compression:

Stored size: 657 Bytes

Contents

require 'rails/generators'

class UploaderGenerator < Rails::Generators::Base
  def self.source_root
    @source_root ||= File.join(File.dirname(__FILE__), 'templates')
  end
  
  def create_uploader_files
    template "amazon_s3.yml", "app/config/amazon_s3.yml"
    copy_file  "../../../app/assets/javascripts/applicious_utils/Plupload/js/plupload.flash.swf", "public/applicious/plupload/plupload.flash.swf"
    copy_file  "../../../app/assets/javascripts/applicious_utils/Plupload/js/plupload.silverlight.xap", "public/applicious/plupload/plupload.silverlight.xap"    
    #template "session_store.rb", "app/config/initializers/session_store.rb"
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
applicious_utils-0.1.35 lib/generators/uploader_generator.rb
applicious_utils-0.1.34 lib/generators/uploader_generator.rb
applicious_utils-0.1.33 lib/generators/uploader_generator.rb
applicious_utils-0.1.32 lib/generators/uploader_generator.rb
applicious_utils-0.1.31 lib/generators/uploader_generator.rb
applicious_utils-0.1.30 lib/generators/uploader_generator.rb