Sha256: 1229866d05b8b22ad0eb013ee517fa8c8141c2d23c6b81f02850418811a7671f

Contents?: true

Size: 667 Bytes

Versions: 7

Compression:

Stored size: 667 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", "#{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"    
    #template "session_store.rb", "app/config/initializers/session_store.rb"
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
applicious_utils-0.1.43 lib/generators/uploader_generator.rb
applicious_utils-0.1.41 lib/generators/uploader_generator.rb
applicious_utils-0.1.40 lib/generators/uploader_generator.rb
applicious_utils-0.1.39 lib/generators/uploader_generator.rb
applicious_utils-0.1.38 lib/generators/uploader_generator.rb
applicious_utils-0.1.37 lib/generators/uploader_generator.rb
applicious_utils-0.1.36 lib/generators/uploader_generator.rb