Skip to content

Instantly share code, notes, and snippets.

@waratuman
waratuman / submodule_strategy.rb
Created July 12, 2019 23:50 — forked from stevenscg/submodule_strategy.rb
Capistrano deploy strategy that supports git submodules (requires Capistrano v3.1.0 or later)
# this include won't work for some reason:
# include Capistrano::Git::DefaultStrategy
module SubmoduleStrategy
# check for a .git directory
def test
test! " [ -d #{repo_path}/.git ] "
end