Sha256: 8fcc5f47f74d0d14ef157a472b5f847a5890aa070ac818491d9bdd8b00666401

Contents?: true

Size: 1.16 KB

Versions: 34

Compression:

Stored size: 1.16 KB

Contents

# TODO: this is nearly identical to git.rake. DRY up?

# This trick lets us access the Svn plugin within `on` blocks.
svn_plugin = self

namespace :svn do
  desc "Check that the repo is reachable"
  task :check do
    on release_roles :all do
      svn_plugin.check_repo_is_reachable
    end
  end

  desc "Clone the repo to the cache"
  task :clone do
    on release_roles :all do
      if svn_plugin.repo_mirror_exists?
        info t(:mirror_exists, at: repo_path)
      else
        within deploy_path do
          svn_plugin.clone_repo
        end
      end
    end
  end

  desc "Pull changes from the remote repo"
  task update: :'svn:clone' do
    on release_roles :all do
      within repo_path do
        svn_plugin.update_mirror
      end
    end
  end

  desc "Copy repo to releases"
  task create_release: :'svn:update' do
    on release_roles :all do
      within repo_path do
        svn_plugin.archive_to_release_path
      end
    end
  end

  desc "Determine the revision that will be deployed"
  task :set_current_revision do
    on release_roles :all do
      within repo_path do
        set :current_revision, svn_plugin.fetch_revision
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
capistrano-3.19.2 lib/capistrano/scm/tasks/svn.rake
capistrano-3.19.1 lib/capistrano/scm/tasks/svn.rake
capistrano-3.19.0 lib/capistrano/scm/tasks/svn.rake
capistrano-3.18.1 lib/capistrano/scm/tasks/svn.rake
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/capistrano-3.18.0/lib/capistrano/scm/tasks/svn.rake
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/capistrano-3.18.0/lib/capistrano/scm/tasks/svn.rake
capistrano-3.18.0 lib/capistrano/scm/tasks/svn.rake
capistrano-3.17.3 lib/capistrano/scm/tasks/svn.rake
capistrano-3.17.2 lib/capistrano/scm/tasks/svn.rake
capistrano-3.17.1 lib/capistrano/scm/tasks/svn.rake
capistrano-3.17.0 lib/capistrano/scm/tasks/svn.rake
capistrano-3.16.0 lib/capistrano/scm/tasks/svn.rake
capistrano-3.15.0 lib/capistrano/scm/tasks/svn.rake
capistrano-3.14.1 lib/capistrano/scm/tasks/svn.rake
capistrano-3.14.0 lib/capistrano/scm/tasks/svn.rake
capistrano-3.13.0 lib/capistrano/scm/tasks/svn.rake
capistrano-3.12.1 lib/capistrano/scm/tasks/svn.rake
capistrano-3.12.0 lib/capistrano/scm/tasks/svn.rake
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/capistrano-3.11.0/lib/capistrano/scm/tasks/svn.rake
capistrano-3.11.2 lib/capistrano/scm/tasks/svn.rake