capistrano-rsync 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/CHANGELOG.md +3 -0
- data/Makefile +4 -0
- data/README.md +30 -12
- data/lib/capistrano/rsync.rb +4 -4
- data/lib/capistrano/rsync/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YmZkNTdlYjRiZWY4NmQ2N2Q3ODU1NTVhYjFiNGFiZmY2MmRjYTU1Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDAxYmQ1MTkxZGU4ZmEwZGU1MzU1NDEwMTNmMzg2Njg1NGNlYmQzMQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OGVmMGM4NWNmMGUzZDQxNGM0ZGU5M2U5Zjg0ZDllNjYzMmM1Mzg1N2RmODhl
|
10
|
+
NjE4MjA4OTdlYWEzZmI1NDBlNTM0NjU0OGIyYTdlOWNiMjYyNzNkZDRhN2Vi
|
11
|
+
ZGMwYjQ1MDg4N2MwNWU2MDA1MGIwYTgzZmM4OWIxYTY1OGM2Yjg=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZmJjZDA3ZDcwMmU1NTEwMmVlN2MyZTA0MTkwYjcyMTQ5OGU5YzY3MWU2Mjlk
|
14
|
+
MjRjNTlhMzljMTRhMzAxMWM1MGEyMDNlZmU3NDBiMzFhNDRiZmFiMDljMzIz
|
15
|
+
NzBkOGNmYjI0NTBhZGFhMTgxOTcyZDE1N2NkYjliNmVkNDE0NjU=
|
data/CHANGELOG.md
CHANGED
data/Makefile
CHANGED
data/README.md
CHANGED
@@ -1,17 +1,27 @@
|
|
1
1
|
Capistrano::Rsync for Capistrano v3
|
2
2
|
===================================
|
3
|
-
[![Gem version]
|
3
|
+
[![Gem version][gem-badge]](http://badge.fury.io/rb/capistrano-rsync)
|
4
|
+
[gem-badge]: https://badge.fury.io/rb/capistrano-rsync.png
|
4
5
|
|
5
|
-
**Deploy with Rsync** to your server from any local (or remote) repository when
|
6
|
-
Saves you from having to
|
6
|
+
**Deploy with Rsync** to your server from any local (or remote) repository when
|
7
|
+
using [**Capistrano**](http://www.capistranorb.com/). Saves you from having to
|
8
|
+
install Git on your production machine and allows you to customize which files
|
9
|
+
you want to deploy. Also allows you to easily precompile things on your local
|
10
|
+
machine before deploying.
|
7
11
|
|
8
12
|
### Tour
|
9
|
-
- Works with the new [**Capistrano v3**](http://www.capistranorb.com/) ([source
|
13
|
+
- Works with the new [**Capistrano v3**](http://www.capistranorb.com/) ([source
|
14
|
+
code](https://github.com/capistrano/capistrano)) versions `>= 3.0.0pre14` and
|
15
|
+
`< 4`.
|
10
16
|
- Suitable for deploying any apps, be it Ruby, Rails, Node.js or others.
|
11
17
|
- Exclude files from being deployed with Rsync's `--exclude` options.
|
12
18
|
- Precompile files or assets easily before deploying, like JavaScript or CSS.
|
13
19
|
- Caches your previously deployed code to speed up deployments ~1337%.
|
14
|
-
- Currently works only with Git (as does Capistrano v3), so please shout out
|
20
|
+
- Currently works only with Git (as does Capistrano v3), so please shout out
|
21
|
+
your interest in other SCMs.
|
22
|
+
|
23
|
+
Using [Mina](http://nadarei.co/mina/) instead of Capistrano? I've built
|
24
|
+
[Mina::Rsync](https://github.com/moll/mina-rsync) as well.
|
15
25
|
|
16
26
|
|
17
27
|
Using
|
@@ -37,16 +47,20 @@ cap deploy
|
|
37
47
|
```
|
38
48
|
|
39
49
|
### Implementation
|
40
|
-
1. Clones and updates your repository to `rsync_stage` (defaults to
|
50
|
+
1. Clones and updates your repository to `rsync_stage` (defaults to
|
51
|
+
`tmp/deploy`) on your local machine.
|
41
52
|
2. Checks out the branch set in the `branch` variable (defaults to `master`).
|
42
|
-
3. If `rsync_cache` set (defaults to `shared/deploy`), rsyncs to that directory
|
43
|
-
|
53
|
+
3. If `rsync_cache` set (defaults to `shared/deploy`), rsyncs to that directory
|
54
|
+
on the server.
|
55
|
+
4. If `rsync_cache` set, copies the content of that directory to a new release
|
56
|
+
directory.
|
44
57
|
5. If `rsync_cache` is `nil`, rsyncs straight to a new release directory.
|
45
58
|
|
46
59
|
After that, Capistrano takes over and runs its usual tasks and symlinking.
|
47
60
|
|
48
61
|
### Exclude files from being deployed
|
49
|
-
If you don't want to deploy everything you've committed to your repository, pass
|
62
|
+
If you don't want to deploy everything you've committed to your repository, pass
|
63
|
+
some `--exclude` options to Rsync:
|
50
64
|
```ruby
|
51
65
|
set :rsync_options, %w[
|
52
66
|
--recursive --delete --delete-excluded
|
@@ -89,12 +103,14 @@ rsync_options | `[]` | Array of options to pass to `rsync`.
|
|
89
103
|
|
90
104
|
License
|
91
105
|
-------
|
92
|
-
Capistrano::Rsync is released under a *Lesser GNU Affero General Public
|
106
|
+
Capistrano::Rsync is released under a *Lesser GNU Affero General Public
|
107
|
+
License*, which in summary means:
|
93
108
|
|
94
109
|
- You **can** use this program for **no cost**.
|
95
110
|
- You **can** use this program for **both personal and commercial reasons**.
|
96
111
|
- You **do not have to share your own program's code** which uses this program.
|
97
|
-
- You **have to share modifications** (e.g bug-fixes) you've made to this
|
112
|
+
- You **have to share modifications** (e.g bug-fixes) you've made to this
|
113
|
+
program.
|
98
114
|
|
99
115
|
For more convoluted language, see the `LICENSE` file.
|
100
116
|
|
@@ -104,4 +120,6 @@ About
|
|
104
120
|
**[Andri Möll](http://themoll.com)** made this happen.
|
105
121
|
[Monday Calendar](https://mondayapp.com) was the reason I needed this.
|
106
122
|
|
107
|
-
If you find Capistrano::Rsync needs improving, please don't hesitate to type to
|
123
|
+
If you find Capistrano::Rsync needs improving, please don't hesitate to type to
|
124
|
+
me now at [andri@dot.ee](mailto:andri@dot.ee) or [create an issue
|
125
|
+
online](https://github.com/moll/capistrano-rsync/issues).
|
data/lib/capistrano/rsync.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
require File.expand_path("../rsync/version", __FILE__)
|
2
2
|
|
3
|
-
# NOTE: Please don't depend on tasks without a description (`desc`)
|
4
|
-
#
|
5
|
-
# API and
|
6
|
-
# public for extending, please let me know!
|
3
|
+
# NOTE: Please don't depend on tasks without a description (`desc`) as they
|
4
|
+
# might change between minor or patch version releases. They make up the
|
5
|
+
# private API and internals of Capistrano::Rsync. If you think something should
|
6
|
+
# be public for extending and hooking, please let me know!
|
7
7
|
|
8
8
|
set :rsync_options, []
|
9
9
|
set :rsync_copy, "rsync --archive --acls --xattrs"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano-rsync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andri Möll
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|