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
48 49 50 |
# File 'lib/kosmos/git_adapter.rb', line 48 def @message end |
#sha ⇒ Object
Returns the value of attribute sha
48 49 50 |
# File 'lib/kosmos/git_adapter.rb', line 48 def sha @sha end |
Instance Method Details
#post? ⇒ Boolean
53 54 55 |
# File 'lib/kosmos/git_adapter.rb', line 53 def post? type == :post end |
#pre? ⇒ Boolean
49 50 51 |
# File 'lib/kosmos/git_adapter.rb', line 49 def pre? type == :pre end |
#subject ⇒ Object
66 67 68 69 |
# File 'lib/kosmos/git_adapter.rb', line 66 def subject # "POST: Example\n" --> "Example" .split(' ', 2).last.strip end |
#type ⇒ Object
61 62 63 64 |
# File 'lib/kosmos/git_adapter.rb', line 61 def type # "POST: Example" --> :post .split(':').first.downcase.to_sym end |
#uninstall? ⇒ Boolean
57 58 59 |
# File 'lib/kosmos/git_adapter.rb', line 57 def uninstall? type == :uninstall end |