Skip to content

Instantly share code, notes, and snippets.

@smoil
Created January 26, 2014 00:58
Show Gist options
  • Save smoil/8626317 to your computer and use it in GitHub Desktop.
Save smoil/8626317 to your computer and use it in GitHub Desktop.
task :copy_resque_web_assets do
resque_assets = "`bundle show resque`/lib/resque/server/public/*"
resque_release_path = "public/admin/resque"
queue! %{
echo "-----> Copying resque web assets" && (
#{echo_cmd "mkdir -p ./#{resque_release_path}"} &&
#{echo_cmd "cp #{resque_assets} ./#{resque_release_path}" }
)
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment