Class: Hotspots::Repository::GitCommand::Show
- Inherits:
-
Object
- Object
- Hotspots::Repository::GitCommand::Show
- Defined in:
- lib/hotspots/repository/git_command.rb
Instance Attribute Summary collapse
-
#commit_hash ⇒ Object
readonly
Returns the value of attribute commit_hash.
Instance Method Summary collapse
-
#initialize(options) ⇒ Show
constructor
A new instance of Show.
- #to_s ⇒ Object
Constructor Details
#initialize(options) ⇒ Show
Returns a new instance of Show.
28 29 30 |
# File 'lib/hotspots/repository/git_command.rb', line 28 def initialize() @commit_hash = [:commit_hash] end |
Instance Attribute Details
#commit_hash ⇒ Object (readonly)
Returns the value of attribute commit_hash.
26 27 28 |
# File 'lib/hotspots/repository/git_command.rb', line 26 def commit_hash @commit_hash end |
Instance Method Details
#to_s ⇒ Object
32 33 34 |
# File 'lib/hotspots/repository/git_command.rb', line 32 def to_s "git show --oneline --name-only #{commit_hash}" end |