Sha256: ec7712182016b7289e840bd4ef7f07f511554959abfa851d0f444a778c2503d5
Contents?: true
Size: 601 Bytes
Versions: 2
Compression:
Stored size: 601 Bytes
Contents
def run_sprockets_rake_task(task) rake = fetch(:rake, 'rake') rails_env = fetch(:rails_env, 'production') run "cd #{current_release}; #{rake} RAILS_ENV=#{rails_env} sprockets:#{task}" end namespace :sprockets do desc "Generate and install the Sprockets concatenated JavaScript file for all configuration groups" task :install_script, :roles => :app do run_sprockets_rake_task 'install_script' end desc "Install any assets provided by Sprockets script, for all configuration groups" task :install_assets, :roles => :app do run_sprockets_rake_task 'install_assets' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sprockets-rails-0.0.1 | recipes/sprockets_tasks.rb |
sprockets-rails-0.0.0 | recipes/sprockets_tasks.rb |