capistrano-rsync-hg 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/lib/capistrano/rsync.rb +2 -0
- data/lib/capistrano/rsync/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4284fea8ae5240e2ec4a646edc30b4da1abe8eb0
|
4
|
+
data.tar.gz: 93eb4dfd1b9c9d0dc3e6e237a3a48c766adefa90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: badee39f357c98f64b445c396c98a09fb32ad6fe9892ea58de335e8ff13671eb02678940c190b568631c5a1274d5a1e98e365279699102841ce32cde768adb2f
|
7
|
+
data.tar.gz: c31d6d19326e05736714c3407a2435fd909db04b2f5bdd4611c5835d010f92d74b82ce022da292044f5de223e14e225302e9fd52ebc8eae55951a1d24d918b63
|
data/README.md
CHANGED
@@ -26,6 +26,7 @@ And add other related options to your liking:
|
|
26
26
|
set :repo_url, "ssh://hg@bitbucket.org/myusername/myrepository"
|
27
27
|
set :branch, "default"
|
28
28
|
set :rsync_exclude, %w[ .hg* ]
|
29
|
+
set :rsync_include, %w[ ]
|
29
30
|
set :rsync_options, %w[ --archive --recursive --delete --delete-excluded ]
|
30
31
|
set :local_cache, ".cache_#{fetch(:stage)}"
|
31
32
|
set :remote_cache, "shared/cache"
|
@@ -34,6 +35,7 @@ And add other related options to your liking:
|
|
34
35
|
* `:repo_url` - the repository to clone.
|
35
36
|
* `:branch` - the branch to checkout.
|
36
37
|
* `:rsync_exclude` - array of files/paths to exclude from rsync (optional).
|
38
|
+
* `:rsync_include` - array of files/paths to override subset of `:rsync_exclude` (optional).
|
37
39
|
* `:rsync_options` - additional rsync options (optional).
|
38
40
|
* `:local_cache` - the local cache folder (where the repo will be checked out) - either absolute or relative to the local project root.
|
39
41
|
* `:remote_cache` - the remote cache folder (where the files will be rsynced to) - either absolute or relative to capistrano `deploy_to` variable.
|
data/lib/capistrano/rsync.rb
CHANGED
@@ -8,6 +8,7 @@ end
|
|
8
8
|
namespace :load do
|
9
9
|
task :defaults do
|
10
10
|
set :rsync_exclude, %w[.hg*]
|
11
|
+
set :rsync_include, %w[ ]
|
11
12
|
set :rsync_options, %w[--archive --recursive --delete --delete-excluded]
|
12
13
|
set :copy_command, "rsync --archive --acls --xattrs"
|
13
14
|
set :local_cache, ".rsync_#{fetch(:stage)}"
|
@@ -48,6 +49,7 @@ namespace "rsync" do
|
|
48
49
|
|
49
50
|
rsync_args = []
|
50
51
|
rsync_args.concat fetch(:rsync_options)
|
52
|
+
rsync_args.concat fetch(:rsync_include, []).map{|e| "--include #{e}"}
|
51
53
|
rsync_args.concat fetch(:rsync_exclude, []).map{|e| "--exclude #{e}"}
|
52
54
|
rsync_args << fetch(:local_cache) + "/"
|
53
55
|
rsync_args << "#{user}#{role.hostname}:#{remote_cache.call}"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-rsync-hg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jake Gordon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|