Class: Milestoner::Pusher

Inherits:
Object
  • Object
show all
Includes:
Aids::Git
Defined in:
lib/milestoner/pusher.rb

Overview

Handles publishing of Git tags to remote repository.

Instance Method Summary collapse

Methods included from Aids::Git

#git_supported?

Constructor Details

#initialize(kernel: Kernel) ⇒ Pusher

Returns a new instance of Pusher.



6
7
8
# File 'lib/milestoner/pusher.rb', line 6

def initialize kernel: Kernel
  @kernel = kernel
end

Instance Method Details

#pushObject



10
11
12
13
# File 'lib/milestoner/pusher.rb', line 10

def push
  fail(Errors::Git) unless git_supported?
  kernel.system "git push --tags"
end