Class: Rubysmith::Extensions::Milestoner

Inherits:
Object
  • Object
show all
Defined in:
lib/rubysmith/extensions/milestoner.rb

Overview

Ensures project can be published (tagged) in a reliable and consistent fashion.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(configuration, client: ::Milestoner::Tags::Publisher.new) ⇒ Milestoner

Returns a new instance of Milestoner.



11
12
13
14
# File 'lib/rubysmith/extensions/milestoner.rb', line 11

def initialize configuration, client: ::Milestoner::Tags::Publisher.new
  @configuration = configuration
  @client = client
end

Class Method Details

.callObject



9
# File 'lib/rubysmith/extensions/milestoner.rb', line 9

def self.call(...) = new(...).call

Instance Method Details

#callObject



16
# File 'lib/rubysmith/extensions/milestoner.rb', line 16

def call = client.call(configuration.project_version) && configuration