Sha256: 72d3fed704494bb3a395b0057afcb1398ae3255a73899e2bf6a033656a6845f0

Contents?: true

Size: 1.12 KB

Versions: 17

Compression:

Stored size: 1.12 KB

Contents

configuration = Capistrano::Configuration.respond_to?(:instance) ? Capistrano::Configuration.instance(:must_exist) : Capistrano.configuration(:must_exist)

configuration.load do
  def _cset(name, *args, &block)
    unless exists?(name)
      set(name, *args, &block)
    end
  end

  # don't use sudo, on most shared setups we won't have sudo-access
  _cset(:use_sudo) { false }

  # we're on a share setup so group_writable isn't allowed
  _cset(:group_writable) { false }

  # 3 releases should be enough.
  _cset(:keep_releases) { 3 }

  # remote caching will keep a local git repo on the server you're deploying to and simply run a fetch from that
  # rather than an entire clone. This is probably the best option and will only fetch the differences each deploy
  _cset(:deploy_via) { remote_cache }

  # set the value for pseudo terminals in Capistrano
  default_run_options[:pty] = true

  # your computer must be running ssh-agent for the git checkout to work from the server to the git server
  set :ssh_options, { :forward_agent => true }

  # set version control type and copy strategy
  set :scm, :git
  set :copy_strategy, :checkout
end

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
forkcms_deploy-4.2.0 lib/forkcms_deploy/defaults.rb
forkcms_deploy-4.1.0 lib/forkcms_deploy/defaults.rb
forkcms_deploy-4.0.1 lib/forkcms_deploy/defaults.rb
forkcms_deploy-4.0.0 lib/forkcms_deploy/defaults.rb
forkcms_deploy-2.7.1 lib/forkcms_deploy/defaults.rb
forkcms_deploy-2.7.0 lib/forkcms_deploy/defaults.rb
forkcms_deploy-2.6.1 lib/forkcms_deploy/defaults.rb
forkcms_deploy-2.6.0 lib/forkcms_deploy/defaults.rb
forkcms_deploy-2.5.0 lib/forkcms_deploy/defaults.rb
forkcms_deploy-2.4.2 lib/forkcms_deploy/defaults.rb
forkcms_deploy-2.4.1 lib/forkcms_deploy/defaults.rb
forkcms_deploy-2.4.0 lib/forkcms_deploy/defaults.rb
forkcms_deploy-2.3.0 lib/forkcms_deploy/defaults.rb
forkcms_deploy-2.2.0 lib/forkcms_deploy/defaults.rb
forkcms_3_deploy-1.2.0 lib/forkcms_3_deploy/defaults.rb
forkcms_deploy-2.1.0 lib/forkcms_deploy/defaults.rb
forkcms_3_deploy-1.1.2 lib/forkcms_3_deploy/defaults.rb