capistrano_evrone_recipes 0.1.16 → 0.1.17
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 +4 -4
- data/lib/capistrano_evrone_recipes/util.rb +2 -20
- data/lib/capistrano_evrone_recipes/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6fbb96a70ae38e23e257589d0fce134ffd413ce4
|
4
|
+
data.tar.gz: d5f78a522c1653edba10c3208bc53eb4b84d674b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37d8af7ecad59d88b9b2f306479ea9b1d362afcb36b6fcd0719bb7b9b8a7eb798782c5177532d29f4c9a8fbbd07798c03a951f73a9a51a5027abcc455cd3e208
|
7
|
+
data.tar.gz: 15c783746c83a02282bd45898c427347c447e66c335ff7bceb8686e1674f9bc8ff829b1e65186c3f5ecbb340c3783215efd2efb40af4705380ec0a4ac0d2f93a
|
@@ -2,29 +2,11 @@ module CapistranoEvroneRecipes
|
|
2
2
|
class Util
|
3
3
|
class << self
|
4
4
|
def ensure_changed_remote_dirs(cap, path)
|
5
|
-
|
6
|
-
yield
|
7
|
-
return
|
8
|
-
end
|
9
|
-
cap.run changed?(cap, path, recursive: true) do |ch, st, data|
|
10
|
-
Capistrano::Configuration.default_io_proc.call(ch,st,data)
|
11
|
-
unless data.include?(" is not changed")
|
12
|
-
yield
|
13
|
-
end
|
14
|
-
end
|
5
|
+
yield
|
15
6
|
end
|
16
7
|
|
17
8
|
def ensure_changed_remote_files(cap, path)
|
18
|
-
|
19
|
-
yield
|
20
|
-
return
|
21
|
-
end
|
22
|
-
cap.run changed?(cap, path) do |ch, st, data|
|
23
|
-
Capistrano::Configuration.default_io_proc.call(ch,st,data)
|
24
|
-
unless data.include?(" is not changed")
|
25
|
-
yield
|
26
|
-
end
|
27
|
-
end
|
9
|
+
yield
|
28
10
|
end
|
29
11
|
|
30
12
|
def changed?(cap, path, options = {})
|