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