capistrano-rsync 0.2.0 → 0.2.1
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 +5 -1
- data/lib/capistrano/rsync/version.rb +1 -1
- data/lib/capistrano/tasks/rsync.rake +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTBjYTRmOWQ1NGZhMTAyYTFiMmMwYjcwNTVmNTI2Zjg4NTI2MDU2Nw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzcxZWE4YTIxNWVkY2Y1ZDY3YzhiZGFkNmMwNzFlNzVkNmU0MTEyOA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NmE5YzQwZjE0NTE5ODcyNjI4YjE1ZGQ1NDQ4ZDY4MGE1NTM4YjJjM2FlMWYz
|
10
|
+
ZGY5MzQ5NGMxOTQxZTRhNGNlZjY5NWZkMjQ1NDY2ZjQzZGRjOTdlODI4Nzcz
|
11
|
+
MTFkNjA4OGQwZTAwYjQ5Y2Y2YjEwMDkxOWRkMDdhZTVjNzc2Mzk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NGVmZTJmZTUwNWNmZWRhNjk5Njc3ZWUzODk4ZGU3NWI1MmRjYTAxZTBmZDBj
|
14
|
+
OTlkMmI5MzI0ZDVkZTlhNjMyMGY0ODc5YzIyOWRjMDAxY2UzM2ZkYWQ5MjM3
|
15
|
+
OTZlNTQ1ZGMwM2Q3ZjAzZjUxNjZiZmY1MmMwMmVkMDEzZGU0Mzc=
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
|
+
# 0.2.1 (Sep 1, 2013)
|
2
|
+
- Fixes starting with no previous local repository cache.
|
3
|
+
Note to self: Avoid writing code without integration tests.
|
4
|
+
|
1
5
|
# 0.2.0 (Sep 1, 2013)
|
2
|
-
-
|
6
|
+
- Passes user given in `role :app, "user@host"` to `rsync` if set.
|
3
7
|
|
4
8
|
# 0.1.338 (Sep 1, 2013)
|
5
9
|
- Adds gem dependency on Capistrano v3.
|
@@ -19,7 +19,7 @@ namespace :rsync do
|
|
19
19
|
task :create_stage do
|
20
20
|
next if File.directory?(fetch(:rsync_stage))
|
21
21
|
|
22
|
-
clone = %W[git clone
|
22
|
+
clone = %W[git clone]
|
23
23
|
clone << fetch(:repo_url, ".")
|
24
24
|
clone << fetch(:rsync_stage)
|
25
25
|
Kernel.system *clone
|
@@ -27,10 +27,10 @@ namespace :rsync do
|
|
27
27
|
|
28
28
|
task :update_stage => %w[create_stage] do
|
29
29
|
Dir.chdir fetch(:rsync_stage) do
|
30
|
-
update = %W[git
|
30
|
+
update = %W[git fetch --quiet --all --prune]
|
31
31
|
Kernel.system *update
|
32
32
|
|
33
|
-
checkout = %W[git reset --hard
|
33
|
+
checkout = %W[git reset --hard origin/#{fetch(:branch)}]
|
34
34
|
Kernel.system *checkout
|
35
35
|
end
|
36
36
|
end
|