Skip to content

Commit

Permalink
Bump to 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ekho committed Dec 23, 2016
1 parent 4b1afcc commit 1384965
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,22 @@ For Capistrano 3.0-3.6 use old [capistrano-git-submodule-strategy](https://githu
#### Gemfile
From rubygems.org (recommended)
```ruby
gem 'capistrano-git-with-submodules', '~> 1.2'
gem 'capistrano-git-with-submodules', '~> 2.0'
```

Latest revision from github
```ruby
gem 'capistrano-git-with-submodules', '~> 1.2', :github => 'ekho/capistrano-git-with-submodules'
gem 'capistrano-git-with-submodules', '~> 2.0', :github => 'ekho/capistrano-git-with-submodules'
```

#### Capfile
Change default
After
```ruby
require "capistrano/scm/git"
install_plugin Capistrano::SCM::Git
```
to
add
```ruby
require "capistrano/scm/git"
install_plugin Capistrano::SCM::Git

require "capistrano/scm/git-with-submodules"
install_plugin Capistrano::SCM::Git::WithSubmodules
```
Expand Down
2 changes: 1 addition & 1 deletion capistrano-git-with-submodules.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = "capistrano-git-with-submodules"
s.version = '1.2.1'
s.version = '2.0.0'
s.authors = ["Boris Gorbylev"]
s.email = "ekho@ekho.name"
s.homepage = "https://github.com/ekho/capistrano-git-with-submodules"
Expand Down
4 changes: 2 additions & 2 deletions lib/capistrano/scm/git-with-submodules.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "capistrano/scm/git"
require "capistrano/plugin"

class Capistrano::SCM::Git::WithSubmodules < Capistrano::Plugin

Expand Down Expand Up @@ -29,7 +29,7 @@ def define_tasks

execute :git, :reset, '--mixed', quiet, fetch(:branch)
execute :git, :submodule, 'update', '--init', '--depth', 1, '--checkout', '--recursive', quiet
execute :find, release_path, "-name '.git'", "-printf 'Deleted %p'", "-delete"
execute :find, release_path, "-name '.git'", "-printf 'removed %p'", "-delete"
execute :rm, "-f#{verbose}", temp_index_file_path.to_s
end if test :test, '-f', release_path.join('.gitmodules')
end
Expand Down

0 comments on commit 1384965

Please sign in to comment.