Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View cyu's full-sized avatar

Calvin Yu cyu

View GitHub Profile
@cyu
cyu / submodule_strategy.rb
Created July 5, 2019 00:38 — 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