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, content: ::Milestoner::Configuration::Model.new) ⇒ Milestoner

Returns a new instance of Milestoner.



14
15
16
17
18
19
20
# File 'lib/rubysmith/extensions/milestoner.rb', line 14

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

Class Method Details

.callObject



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

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

Instance Method Details

#callObject



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

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