Class: Sunrise::Generators::FileUpload::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Sunrise::Generators::FileUpload::InstallGenerator
- Defined in:
- lib/generators/sunrise/file_upload/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_javascripts ⇒ Object
10 11 12 |
# File 'lib/generators/sunrise/file_upload/install_generator.rb', line 10 def copy_javascripts copy_file "fileuploader-input.js", 'public/javascripts/fileupload/fileuploader-input.js' end |
#download_fileupload ⇒ Object
19 20 21 22 |
# File 'lib/generators/sunrise/file_upload/install_generator.rb', line 19 def download_fileupload say_status("fetching fileuploader.js", "", :green) get "https://github.com/galetahub/file-uploader/raw/master/client/fileuploader.js", "public/javascripts/fileupload/fileuploader.js" end |
#download_stylesheet ⇒ Object
14 15 16 17 |
# File 'lib/generators/sunrise/file_upload/install_generator.rb', line 14 def download_stylesheet say_status("fetching fileuploader.css", "", :green) get "https://github.com/galetahub/file-uploader/raw/master/client/fileuploader.css", "public/javascripts/fileupload/fileuploader.css" end |