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
37 38 39 |
# File 'lib/kosmos/git_adapter.rb', line 37 def @message end |
#sha ⇒ Object
Returns the value of attribute sha
37 38 39 |
# File 'lib/kosmos/git_adapter.rb', line 37 def sha @sha end |
Instance Method Details
#post? ⇒ Boolean
42 43 44 |
# File 'lib/kosmos/git_adapter.rb', line 42 def post? type == :post end |
#pre? ⇒ Boolean
38 39 40 |
# File 'lib/kosmos/git_adapter.rb', line 38 def pre? type == :pre end |
#subject ⇒ Object
55 56 57 58 |
# File 'lib/kosmos/git_adapter.rb', line 55 def subject # "POST: Example\n" --> "Example" .split(' ', 2).last.strip end |
#type ⇒ Object
50 51 52 53 |
# File 'lib/kosmos/git_adapter.rb', line 50 def type # "POST: Example" --> :post .split(':').first.downcase.to_sym end |
#uninstall? ⇒ Boolean
46 47 48 |
# File 'lib/kosmos/git_adapter.rb', line 46 def uninstall? type == :uninstall end |