Sha256: 2219a3d3396acb34338084a49c1090bee60ed52d37e9fefb40c80d8245d22be6

Contents?: true

Size: 887 Bytes

Versions: 40

Compression:

Stored size: 887 Bytes

Contents

require 'rails/generators'

class AppliciousUploaderGenerator < Rails::Generators::Base
  def self.source_root
    @source_root ||= File.join(File.dirname(__FILE__), 'templates')
  end
  
  def create_uploader_files
    template "amazon_s3.yml", "#{Rails.root}/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"    
    copy_file  "applicious_uploader.js.coffee", "app/assets/javascripts/applicious_uploader.js.coffee"    
    copy_file  "crossdomain.xml", "public/applicious/UPLOAD_TO_S3/crossdomain.xml"
    copy_file  "clientaccesspolicy.xml", "public/applicious/UPLOAD_TO_S3/clientaccesspolicy.xml"
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
applicious_utils-0.1.95 lib/generators/applicious_uploader_generator.rb
applicious_utils-0.1.94 lib/generators/applicious_uploader_generator.rb
applicious_utils-0.1.93 lib/generators/applicious_uploader_generator.rb
applicious_utils-0.1.92 lib/generators/applicious_uploader_generator.rb
applicious_utils-0.1.91 lib/generators/applicious_uploader_generator.rb
applicious_utils-0.1.90 lib/generators/applicious_uploader_generator.rb
applicious_utils-0.1.89 lib/generators/applicious_uploader_generator.rb
applicious_utils-0.1.88 lib/generators/applicious_uploader_generator.rb
applicious_utils-0.1.86 lib/generators/applicious_uploader_generator.rb
applicious_utils-0.1.85 lib/generators/applicious_uploader_generator.rb
applicious_utils-0.1.84 lib/generators/applicious_uploader_generator.rb
applicious_utils-0.1.83 lib/generators/applicious_uploader_generator.rb
applicious_utils-0.1.82 lib/generators/applicious_uploader_generator.rb
applicious_utils-0.1.81 lib/generators/applicious_uploader_generator.rb
applicious_utils-0.1.80 lib/generators/applicious_uploader_generator.rb
applicious_utils-0.1.79 lib/generators/applicious_uploader_generator.rb
applicious_utils-0.1.78 lib/generators/applicious_uploader_generator.rb
applicious_utils-0.1.77 lib/generators/applicious_uploader_generator.rb
applicious_utils-0.1.76 lib/generators/applicious_uploader_generator.rb
applicious_utils-0.1.75 lib/generators/applicious_uploader_generator.rb