capistrano-info 0.1.1 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1b5f0ea714cbe5a83340814f2546d6684c9f3449
4
- data.tar.gz: 18326cc8b769b3dc7aea1b66002e7a3ad305e087
3
+ metadata.gz: 85c7e74e68c6f002e52c3547ec3e42e9d5465a62
4
+ data.tar.gz: 547c28602324c8c0b9c17c6f83cf9ef8aa132667
5
5
  SHA512:
6
- metadata.gz: ce23aee870c7ca62ea573ff4c7f39482abdd9aa7804ea37fc934b588f310e77a14fa3c657bf95201d4fec7d3badf018ca0c87fae10b97b35c616b972dcfd4c25
7
- data.tar.gz: 960682f53010e634494b4c4c13ae7627fa02320d19d81cf4f2b1dffbc672f6bd8c31e5babdb4a8a95577cf64eb59b35a11dd5ceb59bc27c6115d8b7735aa4f58
6
+ metadata.gz: aa683b90bcc1d349b1ecb4b88251aec8e42f9295a64ef8dd30e1f039c8b655e381771b566fdac39332ba7baf74c3f087633a56ad01dcf007092a46cfbe5577b5
7
+ data.tar.gz: 9897390764d555db2dcb34ad7f79089d73e1a8d35f4e4e3d30b7b2dcae28ad881da3f506c31792650e2ee5292b9fbe389f9e4cad5f25569397f92ffba6d8e84f
@@ -23,18 +23,26 @@ 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 = capture("test -e #{version_file} && cat #{version_file}").chomp
26
+ version = capture("test -r #{version_file} && cat #{version_file}").chomp
27
27
 
28
- puts <<-EOT
28
+ message = <<-EOT
29
29
 
30
30
  AppName: #{fetch(:application)}
31
31
  Version: #{rev}
32
32
  Release: #{rel}
33
33
 
34
34
  Deploy: #{rel_date}
35
+ EOT
36
+
37
+ message << <<-EOT if version != ""
35
38
  Version: #{version}
39
+ EOT
40
+
41
+ message << <<-EOT
36
42
 
37
43
  EOT
44
+
45
+ puts message
38
46
  end
39
47
 
40
48
  desc "Display the uname"
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Info
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-info
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthias Viehweger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-13 00:00:00.000000000 Z
11
+ date: 2014-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano