Class: Rubysmith::Extensions::Milestoner
- Inherits:
-
Object
- Object
- Rubysmith::Extensions::Milestoner
- 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
- #call ⇒ Object
-
#initialize(configuration, client: ::Milestoner::Tags::Publisher.new, content: ::Milestoner::Configuration::Content.new) ⇒ Milestoner
constructor
A new instance of Milestoner.
Constructor Details
#initialize(configuration, client: ::Milestoner::Tags::Publisher.new, content: ::Milestoner::Configuration::Content.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::Content.new @configuration = configuration @client = client @content = content end |
Class Method Details
.call ⇒ Object
12 |
# File 'lib/rubysmith/extensions/milestoner.rb', line 12 def self.call(...) = new(...).call |
Instance Method Details
#call ⇒ Object
22 |
# File 'lib/rubysmith/extensions/milestoner.rb', line 22 def call = client.call(settings) && configuration |