Class: Kosmos::GitAdapter::Commit
- Inherits:
-
Struct
- Object
- Struct
- Kosmos::GitAdapter::Commit
- Defined in:
- lib/kosmos/git_adapter.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#sha ⇒ Object
Returns the value of attribute sha.
Instance Method Summary collapse
Instance Attribute Details
#message ⇒ Object
Returns the value of attribute message
39 40 41 |
# File 'lib/kosmos/git_adapter.rb', line 39 def end |
#sha ⇒ Object
Returns the value of attribute sha
39 40 41 |
# File 'lib/kosmos/git_adapter.rb', line 39 def sha @sha end |
Instance Method Details
#post? ⇒ Boolean
44 45 46 |
# File 'lib/kosmos/git_adapter.rb', line 44 def post? type == :post end |
#pre? ⇒ Boolean
40 41 42 |
# File 'lib/kosmos/git_adapter.rb', line 40 def pre? type == :pre end |
#subject ⇒ Object
57 58 59 60 |
# File 'lib/kosmos/git_adapter.rb', line 57 def subject # "POST: Example\n" --> "Example" .split(' ', 2).last.strip end |
#type ⇒ Object
52 53 54 55 |
# File 'lib/kosmos/git_adapter.rb', line 52 def type # "POST: Example" --> :post .split(':').first.downcase.to_sym end |
#uninstall? ⇒ Boolean
48 49 50 |
# File 'lib/kosmos/git_adapter.rb', line 48 def uninstall? type == :uninstall end |