capistrano-rsync 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.md +4 -1
- data/README.md +10 -4
- data/lib/capistrano/rsync/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YTlkNGY5YTAzMzRhYWNjMzc3YjhiMDIwZjc3OWY4ZjFiMGMzNzU4Mw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MzlhNmM2Y2M4Mzk5MDQyMjQyYmQyYzdkZTQ0MWViZjczMjgyYzg0MA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NWY0M2EwYzM2NTliNDRiNDkyOGFkNjVjNGZlNjM5NmVhZDczYzQyZTlkZmU5
|
10
|
+
YjVkNjJkMzk4MzU3ZTIwZWNjZDI4Y2I0OGExNjllNjIwMjhlOGMzNzJhMzlh
|
11
|
+
NTk2ZDk2MmE4ZTBhZTgzMjczNTlmMjg1ODNhMDc0NTE2Y2ZjZTk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZWU2ZGU3NmQ5M2M0N2MzMDY5NTZkMTRjZmNhOWMwYmJlZDdiZjVjNWJiNzky
|
14
|
+
YjdjYzIzNDdjOWZmMmI5OTE4NzQ3NTFiMDM1ODI1MzkxOTczNzg0YzM5YzUy
|
15
|
+
MGFkMGY1MzUxNzc5NThlY2JlNGE4MzIwMWIyNDQzOTVjMzUxMjA=
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,9 @@
|
|
1
|
+
## 1.0.1 (Sep 2, 2013)
|
2
|
+
- Updates README and adds implementation details to it.
|
3
|
+
|
1
4
|
## 1.0.0 (Sep 2, 2013)
|
2
5
|
- Makes the `rsync:stage` task public for extending and hooking.
|
3
|
-
-
|
6
|
+
- Renames `rsync:create_release` to `rsync:release`. Old name still works.
|
4
7
|
- Adds optional caching to `rsync_cache` directory on the server.
|
5
8
|
|
6
9
|
## 0.2.1 (Sep 1, 2013)
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@ Capistrano::Rsync for Capistrano v3
|
|
3
3
|
[![Gem version](https://badge.fury.io/rb/capistrano-rsync.png)](http://badge.fury.io/rb/capistrano-rsync)
|
4
4
|
|
5
5
|
**Deploy with Rsync** to your server from any local (or remote) repository when using [**Capistrano**](http://www.capistranorb.com/).
|
6
|
-
Saves you from having to install Git on your production machine and allows you to customize which files you want to deploy.
|
6
|
+
Saves you from having to install Git on your production machine and allows you to customize which files you want to deploy. Also allows you to easily precompile things on your local machine before deploying.
|
7
7
|
|
8
8
|
### Tour
|
9
9
|
- Works with the new [**Capistrano v3**](http://www.capistranorb.com/) ([source code](https://github.com/capistrano/capistrano)) versions `>= 3.0.0pre14` and `< 4`.
|
@@ -21,7 +21,7 @@ Install with:
|
|
21
21
|
gem install capistrano-rsync
|
22
22
|
```
|
23
23
|
|
24
|
-
Require it at the top of your `Capfile` or `config/deploy.rb
|
24
|
+
Require it at the top of your `Capfile` (or `config/deploy.rb`):
|
25
25
|
```ruby
|
26
26
|
require "capistrano/rsync"
|
27
27
|
```
|
@@ -37,7 +37,13 @@ cap deploy
|
|
37
37
|
```
|
38
38
|
|
39
39
|
### Implementation
|
40
|
-
|
40
|
+
1. Clones and updates your repository to `rsync_stage` (defaults to `tmp/deploy`) on your local machine.
|
41
|
+
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 on the server.
|
43
|
+
4. If `rsync_cache` set, copies the content of that directory to a new release directory.
|
44
|
+
5. If `rsync_cache` is `nil`, rsyncs straight to a new release directory.
|
45
|
+
|
46
|
+
After that, Capistrano takes over and runs its usual tasks and symlinking.
|
41
47
|
|
42
48
|
### Exclude files from being deployed
|
43
49
|
If you don't want to deploy everything you've committed to your repository, pass some `--exclude` options to Rsync:
|
@@ -74,8 +80,8 @@ Set Capistrano variables with `set name, value`.
|
|
74
80
|
|
75
81
|
Name | Default | Description
|
76
82
|
--------------|---------|------------
|
77
|
-
branch | `master` | The Git branch to checkout.
|
78
83
|
repo_url | `.` | The path or URL to a Git repository to clone from.
|
84
|
+
branch | `master` | The Git branch to checkout.
|
79
85
|
rsync_stage | `tmp/deploy` | Path where to clone your repository for staging, checkouting and rsyncing. Can be both relative or absolute.
|
80
86
|
rsync_cache | `shared/deploy` | Path where to cache your repository on the server to avoid rsyncing from scratch each time. Can be both relative or absolute.<br> Set to `nil` if you want to disable the cache.
|
81
87
|
rsync_options | `[]` | Array of options to pass to `rsync`.
|