Class: AbAdmin::Generators::CkeditorAssetsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- AbAdmin::Generators::CkeditorAssetsGenerator
- Defined in:
- lib/generators/ab_admin/ckeditor_assets/ckeditor_assets_generator.rb
Constant Summary collapse
- DOWNLOAD_LINK =
'https://dl.dropboxusercontent.com/s/kwzb06hoi9heaoa/ckeditor_assets.tar'
Instance Method Summary collapse
Instance Method Details
#copy_assets ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/generators/ab_admin/ckeditor_assets/ckeditor_assets_generator.rb', line 9 def copy_assets archive = 'ckeditor_assets.tar' path = 'public/javascripts' dest = File.join(@destination_stack.last, path) empty_directory path get DOWNLOAD_LINK, File.join(path, archive) run "tar -xf #{dest}/#{archive} -C #{dest}" end |