Class: Rinfo

Inherits:
Object
  • Object
show all
Defined in:
lib/rinfo.rb,
lib/rinfo/engine.rb,
lib/rinfo/version.rb

Defined Under Namespace

Classes: Engine

Constant Summary collapse

VERSION =
'0.1.0'

Class Method Summary collapse

Class Method Details

.infoObject



10
11
12
13
14
15
16
17
18
19
20
# File 'lib/rinfo.rb', line 10

def info
  <<-RINFO.gsub(/^ {6}/, '')
  {
    "Deployed By": "#{author}",
    "Deployed At": "#{date}",
    "Rails Env": "#{Rails.env}",
    "Branch": "#{branch}",
    "Rev": "#{rev}"
  }
  RINFO
end