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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad68728c52222e568e1680d590da3bf9840f1ce6
4
- data.tar.gz: e1a4342d87a03930fedc0760faecc0ed201886eb
3
+ metadata.gz: 4284fea8ae5240e2ec4a646edc30b4da1abe8eb0
4
+ data.tar.gz: 93eb4dfd1b9c9d0dc3e6e237a3a48c766adefa90
5
5
  SHA512:
6
- metadata.gz: f65494a0120e6d3369cc2aea3e37a8cdf3a90ba4750fd60ea660e3ec7e38fae4c471fbaf2dacf351404948b3d0d9afcaa42b8840497f28bf3af60c0307d98b78
7
- data.tar.gz: fbaeb323107f90f0f656c74ee001a77d46e97efd9ff1868bcef6ac2be839d5f13943445b4aa0b74420f29d0b6b74759684e1c37fc7f8822bfa1b4a029c92e0cd
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.
@@ -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}"
@@ -1,7 +1,7 @@
1
1
  module Capistrano
2
2
  module Rsync
3
3
  NAME = "capistrano-rsync-hg"
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  AUTHORS = [ "Jake Gordon" ]
6
6
  EMAIL = "jake@codeincomplete.com"
7
7
  HOMEPAGE = "https://github.com/jakesgordon/capistrano-rsync-hg"
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.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-04-07 00:00:00.000000000 Z
11
+ date: 2015-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano