Class: MelonjsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/melonjs_generator.rb,
lib/generators/melonjs/melonjs_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_base_filesObject



12
13
14
# File 'lib/melonjs_generator.rb', line 12

def generate_base_files
  copy_file "main.js.coffee", "app/assets/javascripts/main.js.coffee"
end

#generate_manifestObject



8
9
10
# File 'lib/melonjs_generator.rb', line 8

def generate_manifest
  copy_file "application.js", "app/assets/javascripts/application.js"
end

#generate_melonjs_libraryObject



4
5
6
# File 'lib/melonjs_generator.rb', line 4

def generate_melonjs_library
  copy_file "melonJS-0.9.4.js", "vendor/assets/javascripts/melonJS-0.9.4.js"
end