Sha256: 727c859e2296742101c8ededed6e20a7c81ef479e50693da83e99a9746b94a96

Contents?: true

Size: 744 Bytes

Versions: 19

Compression:

Stored size: 744 Bytes

Contents

require 'capistrano/recipes/deploy/strategy/remote'

module Capistrano
  module Deploy
    module Strategy

      # Implements the deployment strategy which does an SCM checkout on each
      # target host. This is the default deployment strategy for Capistrano.
      class Git < Remote
        def clone!
          scm_run clone
        end

        def deploy!
          scm_run sync
        end

        protected

          def clone
            @clone ||= source.checkout(revision, configuration[:release_path])
          end

          # Returns the SCM's checkout command for the revision to deploy.
          def sync
            @sync ||= source.sync(revision, configuration[:release_path])
          end
      end

    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
o2h-0.2.1 lib/o2h/capistrano/deploy/strategy/git.rb
o2h-0.2.0 lib/o2h/capistrano/deploy/strategy/git.rb
o2h-0.1.16 lib/o2h/capistrano/deploy/strategy/git.rb
o2h-0.1.15 lib/o2h/capistrano/deploy/strategy/git.rb
o2h-0.1.14 lib/o2h/capistrano/deploy/strategy/git.rb
o2h-0.1.13 lib/o2h/capistrano/deploy/strategy/git.rb
o2h-0.1.12 lib/o2h/capistrano/deploy/strategy/git.rb
o2h-0.1.11 lib/o2h/capistrano/deploy/strategy/git.rb
o2h-0.1.10 lib/o2h/capistrano/deploy/strategy/git.rb
o2h-0.1.9 lib/o2h/capistrano/deploy/strategy/git.rb
o2h-0.1.8 lib/o2h/capistrano/deploy/strategy/git.rb
o2h-0.1.7 lib/o2h/capistrano/deploy/strategy/git.rb
o2h-0.1.6 lib/o2h/capistrano/deploy/strategy/git.rb
o2h-0.1.5 lib/o2h/capistrano/deploy/strategy/git.rb
o2h-0.1.4 lib/o2h/capistrano/deploy/strategy/git.rb
o2h-0.1.3 lib/o2h/capistrano/deploy/strategy/git.rb
o2h-0.1.2 lib/o2h/capistrano/deploy/strategy/git.rb
o2h-0.1.1 lib/o2h/capistrano/deploy/strategy/git.rb
o2h-0.1.0 lib/o2h/capistrano/deploy/strategy/git.rb