Class: Milestoner::Pusher
- Inherits:
-
Object
- Object
- Milestoner::Pusher
- Includes:
- Aids::Git
- Defined in:
- lib/milestoner/pusher.rb
Overview
Handles publishing of Git tags to remote repository.
Instance Method Summary collapse
-
#initialize(kernel: Kernel) ⇒ Pusher
constructor
A new instance of Pusher.
- #push ⇒ Object
Methods included from Aids::Git
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
#push ⇒ Object
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 |