# Capistrano 3.0.x
task :precompile do
on :sprockets_asset_host, reject: lambda { |h| h.properties.no_release } do
within fetch(:latest_release_directory)
with rails_env: fetch(:rails_env) do
execute :rake, 'assets:precompile'
end
end
end
end
Is there any place to learn this language and the correct way of writing tasks? Thanks in advance!https://github.com/capistrano/sshkit/blob/master/EXAMPLES.md
A PR to the docs to link this wherever you think it would have made sense would be appreciated.
Sent from my Nexus 4.
--
You received this message because you are subscribed to the Google Groups "Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capistrano+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/29fb57d3-68e7-4f53-b387-65bb4dcd3fd9%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.