Class: Hotspots::Repository::GitDriver

Inherits:
Object
  • Object
show all
Defined in:
lib/hotspots/repository/git_driver.rb

Instance Method Summary collapse

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(options)
  @logger = options[:logger]
end

Instance Method Details

#pretty_log(options) ⇒ Object



11
12
13
# File 'lib/hotspots/repository/git_driver.rb', line 11

def pretty_log(options)
  execute GitCommand::Log.new(:since_days => options[:since_days], :message_filter => options[: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(options)
  execute GitCommand::Show.new(:commit_hash => options[:commit_hash]).to_s
end