Method: Hercules::GitHandler#initialize
- Defined in:
- lib/git_handler.rb
#initialize(options) ⇒ GitHandler
We pass an options hash that should contain:
{
'target_directory' => '/home/hercules/hercules.com',
'repository' => 'git://github.com/diogob/hercules.git',
'master' => { 'checkouts_to_keep' => 2 },
}
14 15 16 17 |
# File 'lib/git_handler.rb', line 14 def initialize() = @last_commit = nil end |