Sha256: ef5d560a0b52604ab3aceca1578bdee3f8b0cd0845ac0454ae7762b63b713a05
Contents?: true
Size: 705 Bytes
Versions: 6
Compression:
Stored size: 705 Bytes
Contents
require 'rails/generators' module ConcertoAudio class InstallGenerator < Rails::Generators::Base source_root File.expand_path('../../../../', __FILE__) desc 'Copy the Audio JavaScript to the frontend and register it.' def install copy_js register recompile end private def copy_js copy_file 'public/frontend_js/contents/audio.js', 'public/frontend_js/contents/audio.js' end def register append_file 'public/frontend_js/content_types.js', "goog.require('concerto.frontend.Content.Audio');\n" end def recompile inside 'public/frontend_js' do run('/bin/bash compile.sh', {:verbose => true}) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems