Class: Hotspots::Repository::GitDriver
- Inherits:
-
Object
- Object
- Hotspots::Repository::GitDriver
- Defined in:
- lib/hotspots/repository/git_driver.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ GitDriver
constructor
A new instance of GitDriver.
- #pretty_log(options) ⇒ Object
- #show_one_line_names(options) ⇒ Object
Constructor Details
#initialize(options) ⇒ GitDriver
Returns a new instance of GitDriver.
7 8 9 |
# File 'lib/hotspots/repository/git_driver.rb', line 7 def initialize() @logger = [:logger] end |
Instance Method Details
#pretty_log(options) ⇒ Object
11 12 13 |
# File 'lib/hotspots/repository/git_driver.rb', line 11 def pretty_log() execute GitCommand::Log.new(:since_days => [:since_days], :message_filter => [:message_filter]).to_s end |
#show_one_line_names(options) ⇒ Object
15 16 17 |
# File 'lib/hotspots/repository/git_driver.rb', line 15 def show_one_line_names() execute GitCommand::Show.new(:commit_hash => [:commit_hash]).to_s end |