Skip to content

Commit 159edbd

Browse files
author
Bastian Bartmann
committed
added generator for flash and silverlight fallback
1 parent bf33d09 commit 159edbd

File tree

5 files changed

+19
-0
lines changed

5 files changed

+19
-0
lines changed

lib/podlove-web-player-rails.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
require "podlove-web-player-rails/version"
22
require "podlove-web-player-rails/view_helpers"
3+
require "podlove-web-player-rails/generators/install_generator"
34

45
module PodloveWebPlayerRails
56
# Loads all the needed assets and includes the View Helpers
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
To copy the files needed for flash and silverlight fallback to your Rails App, just do:
2+
3+
rails generate podlove_web_player_rails:install
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
require 'rails/generators/base'
2+
3+
module PodloveWebPlayerRails
4+
module Generators
5+
class InstallGenerator < Rails::Generators::Base
6+
desc "Copy files needed for flash and silverlight fallback"
7+
source_root File.expand_path('../templates', __FILE__)
8+
9+
def copy_files
10+
copy_file "flashmediaelement.swf", "public/static/flashmediaelement.swf"
11+
copy_file "silverlightmediaelement.xap", "public/static/silverlightmediaelement.xap"
12+
end
13+
end
14+
end
15+
end
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)