Class: ScoutApm::GitRevision
- Inherits:
-
Object
- Object
- ScoutApm::GitRevision
- Defined in:
- lib/scout_apm/git_revision.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#sha ⇒ Object
Returns the value of attribute sha.
Instance Method Summary collapse
-
#initialize(context) ⇒ GitRevision
constructor
A new instance of GitRevision.
- #logger ⇒ Object
Constructor Details
#initialize(context) ⇒ GitRevision
Returns a new instance of GitRevision.
7 8 9 10 11 |
# File 'lib/scout_apm/git_revision.rb', line 7 def initialize(context) @context = context @sha = detect logger.debug "Detected Git Revision [#{@sha}]" end |
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
5 6 7 |
# File 'lib/scout_apm/git_revision.rb', line 5 def context @context end |
#sha ⇒ Object
Returns the value of attribute sha.
3 4 5 |
# File 'lib/scout_apm/git_revision.rb', line 3 def sha @sha end |
Instance Method Details
#logger ⇒ Object
13 14 15 |
# File 'lib/scout_apm/git_revision.rb', line 13 def logger context.logger end |