Module: Koi::Release
- Defined in:
- lib/koi/release.rb
Class Method Summary collapse
Class Method Details
.meta_tags(context) ⇒ Object
17 18 19 |
# File 'lib/koi/release.rb', line 17 def (context) ReleaseMetaTagsBuilder.new(context).render end |
.read(file) ⇒ Object
23 24 25 26 27 28 |
# File 'lib/koi/release.rb', line 23 def read(file) return "HEAD" if Rails.env.development? return "unknown" unless File.exist?(file) File.read(file).strip end |
.revision ⇒ Object
11 12 13 |
# File 'lib/koi/release.rb', line 11 def revision @revision ||= read(::Rails.root.join("REVISION")) end |
.version ⇒ Object
5 6 7 |
# File 'lib/koi/release.rb', line 5 def version @version ||= read(::Rails.root.join("VERSION")) end |