updated for asset pipeline
This commit is contained in:
parent
8589879d03
commit
8f6867ca5f
@ -2,21 +2,21 @@ module Flowplayer
|
||||
module Generator
|
||||
class InstallGenerator < Rails::Generators::Base
|
||||
namespace 'flowplayer'
|
||||
source_root File.expand_path("../../../../../assets", __FILE__)
|
||||
source_root File.expand_path("../../../../../vendor/assets/", __FILE__)
|
||||
argument :install_type, :type => :string, :banner => "commercial", :required => false, :default => ''
|
||||
|
||||
def install_flowplayer
|
||||
copy_file 'flowplayer-3.2.4.min.js', Rails.root.join('public', 'javascripts', 'flowplayer.min.js')
|
||||
copy_file 'javascripts/flowplayer-3.2.4.min.js', Rails.root.join('public', 'javascripts', 'flowplayer.min.js')
|
||||
end
|
||||
|
||||
def install_swfs
|
||||
if install_type == 'commercial'
|
||||
copy_file 'flowplayer.commercial-3.2.5.swf', Rails.root.join('public', 'flowplayer.swf')
|
||||
copy_file 'flash/flowplayer.commercial-3.2.5.swf', Rails.root.join('public', 'flowplayer.swf')
|
||||
else
|
||||
copy_file 'flowplayer-3.2.5.swf', Rails.root.join('public', 'flowplayer.swf')
|
||||
copy_file 'LICENSE.txt', Rails.root.join('FLOWPLAYER_LICENSE.txt')
|
||||
copy_file 'flash/flowplayer-3.2.5.swf', Rails.root.join('public', 'flowplayer.swf')
|
||||
copy_file '../../FLOWPLAYER_LICENSE.txt', Rails.root.join('FLOWPLAYER_LICENSE.txt')
|
||||
end
|
||||
copy_file 'flowplayer.controls-3.2.3.swf', Rails.root.join('public', 'flowplayer.controls.swf')
|
||||
copy_file 'flash/flowplayer.controls-3.2.3.swf', Rails.root.join('public', 'flowplayer.controls.swf')
|
||||
end
|
||||
|
||||
end
|
||||
|
BIN
vendor/.DS_Store
vendored
Normal file
BIN
vendor/.DS_Store
vendored
Normal file
Binary file not shown.
BIN
vendor/assets/.DS_Store
vendored
Normal file
BIN
vendor/assets/.DS_Store
vendored
Normal file
Binary file not shown.
1
vendor/assets/javascripts/flowplayer.js
vendored
Normal file
1
vendor/assets/javascripts/flowplayer.js
vendored
Normal file
@ -0,0 +1 @@
|
||||
//= require flowplayer-3.2.4.min
|
Loading…
Reference in New Issue
Block a user