Class: Koi::ReleaseMetaTagsBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/koi/release.rb

Instance Method Summary collapse

Constructor Details

#initialize(context) ⇒ ReleaseMetaTagsBuilder

Returns a new instance of ReleaseMetaTagsBuilder.



36
37
38
# File 'lib/koi/release.rb', line 36

def initialize(context)
  @context = context
end

Instance Method Details

#renderObject



48
49
50
# File 'lib/koi/release.rb', line 48

def render
  version + revision
end

#revisionObject



44
45
46
# File 'lib/koi/release.rb', line 44

def revision
  tag.meta(name: "application-revision", content: Koi::Release.revision)
end

#versionObject



40
41
42
# File 'lib/koi/release.rb', line 40

def version
  tag.meta(name: "application-version", content: Koi::Release.version)
end