Skip to content

Commit

Permalink
Add Rails 3 generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Zubkov committed Dec 29, 2010
1 parent 2ef59b7 commit eccdef1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/generators/mp3_player/USAGE
@@ -0,0 +1,8 @@
Description:
A simple mp3 player plugin for rails

Example:
rails generate mp3_player

This will create:
public/player.swf
7 changes: 7 additions & 0 deletions lib/generators/mp3_player/mp3_player_generator.rb
@@ -0,0 +1,7 @@
class Mp3PlayerGenerator < Rails::Generators::Base
source_root File.expand_path('../templates', __FILE__)

def copy_player
copy_file 'player.swf', 'public/player.swf'
end
end
Binary file added lib/generators/mp3_player/templates/player.swf
Binary file not shown.

0 comments on commit eccdef1

Please sign in to comment.