Search code examples
ruby-on-railscapistranocapistrano3accurev

How can I continue to use Accurev with Capistrano 3?


We use AccuRev (and I cannot change that) and have been deploying with Capistrano 2. I need to upgrade to Capistrano 3, but it seems that the Accurev SCM module has been removed. Is there a way I can continue to use AccuRev and deploy with Capistrano 3?

deploy.rb piece

set :scm, :accurev

Deployment error

cap aborted!
LoadError: cannot load such file -- capistrano/accurev.rb

Solution

  • As Capistrano3 documentation says - there is only git, hg and svn support.

    But it should not be so hard to port old accurev module from Capistrano 2 to Capistrano 3. Some classes changed but core is same - functions have to return proper commands with proper parameters.

    You can start from git implementation from master and replace it with AccuRev.