capistrano-info 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capistrano-info/capistrano.rb +5 -1
- data/lib/capistrano-info/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: cfed0d902a83a66e568afc9befd59c8d35bca3af
|
4
|
+
data.tar.gz: 37f654ae67e01d447f42a3e45d68827389f4473e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01af6ad6cb40f6aaee351b02e22626d960dfa424dac1fc4d668da6f60eb57eb729a03dd31f07fe225341e67e62ee544be14c862c3aab71c561b7111869020ede
|
7
|
+
data.tar.gz: 1bbfc5013a3f005749991f259510bc12c0d080f586927eb7c8e7651fd39d73b95637aa0edbc86fca22bb21c1cd3b312b2e7764e25ffb9f13a87aff5a81349129
|
@@ -23,7 +23,11 @@ Capistrano::Configuration.instance.load do
|
|
23
23
|
rel_date = Time.local(*rel.unpack("a4a2a2a2a2a2"))
|
24
24
|
|
25
25
|
version_file = "#{current_path}/VERSION"
|
26
|
-
version =
|
26
|
+
version = begin
|
27
|
+
capture("test -r #{version_file} && cat #{version_file}").chomp
|
28
|
+
rescue Capistrano::CommandError
|
29
|
+
""
|
30
|
+
end
|
27
31
|
|
28
32
|
message = <<-EOT
|
29
33
|
|