Class: Headshot::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/headshot/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_audio_filesObject



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_filesObject



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_javascriptsObject



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_generatorsObject



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