capistrano-info 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,14 +22,19 @@ Capistrano::Configuration.instance.load do
22
22
  rel = current_release.split('/').pop
23
23
  rel_date = Time.local(*rel.unpack("a4a2a2a2a2a2"))
24
24
 
25
- puts <<-EOT
25
+ version_file = "#{current_path}/VERSION"
26
+ version = capture("test -e #{version_file} && cat #{version_file}").chomp
27
+
28
+ puts <<-EOT
26
29
 
27
30
  AppName: #{fetch(:application)}
28
31
  Version: #{rev}
29
32
  Release: #{rel}
33
+
30
34
  Deploy: #{rel_date}
35
+ Version: #{version}
31
36
 
32
- EOT
37
+ EOT
33
38
  end
34
39
 
35
40
  desc "Display the uname"
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Info
3
- VERSION = "0.0.1"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-info
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-07 00:00:00.000000000 Z
12
+ date: 2012-08-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano