Class: Headshot::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Headshot::Generators::InstallGenerator
- Defined in:
- lib/generators/headshot/install/install_generator.rb
Instance Method Summary collapse
- #copy_audio_files ⇒ Object
- #copy_flash_app_files ⇒ Object
- #copy_javascripts ⇒ Object
- #run_other_generators ⇒ Object
Instance Method Details
#copy_audio_files ⇒ Object
17 18 19 20 |
# File 'lib/generators/headshot/install/install_generator.rb', line 17 def copy_audio_files say_status('copying', 'Copying Audio files ...') copy_file('audio/shutter.mp3', 'public/audio/shutter.mp3') end |
#copy_flash_app_files ⇒ Object
22 23 24 25 |
# File 'lib/generators/headshot/install/install_generator.rb', line 22 def copy_flash_app_files say_status('copying', 'Copying Flash application files ...') copy_file('swfs/headshot.swf', 'public/swfs/headshot.swf') end |
#copy_javascripts ⇒ Object
11 12 13 14 15 |
# File 'lib/generators/headshot/install/install_generator.rb', line 11 def copy_javascripts say_status('copying', 'Copying Javascripts ...') copy_file('javascripts/headshot.js', 'app/assets/javascripts/headshot.js') copy_file('javascripts/headshot_support.js', 'app/assets/javascripts/headshot_support.js') end |
#run_other_generators ⇒ Object
27 28 29 30 |
# File 'lib/generators/headshot/install/install_generator.rb', line 27 def run_other_generators generate("headshot:config") generate("headshot:generate") end |