Last active
August 29, 2015 14:24
-
-
Save yamaaki/34c9ac7c32cd30efecb0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'capistrano/setup' | |
require 'capistrano/deploy' | |
require 'capistrano/rails' | |
require 'capistrano/rails/assets' | |
require 'capistrano/rails/migrations' | |
require 'capistrano/rbenv' | |
require 'capistrano/bundler' | |
require 'capistrano/puma' | |
require 'capistrano/git' | |
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r } | |
class Capistrano::Git | |
module SubDirectoryStrategy | |
include DefaultStrategy | |
def release | |
git :archive, fetch(:branch), fetch(:project_root), '| tar -x -C', release_path, "--strip=#{fetch(:project_root).count('/')+1}" | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment