Class: Gemsmith::Tools::Publisher
- Inherits:
-
Object
- Object
- Gemsmith::Tools::Publisher
- Defined in:
- lib/gemsmith/tools/publisher.rb
Overview
Handles the publication of a gem version.
Constant Summary collapse
- STEPS =
Order matters.
[ Tools::Cleaner.new, Tools::Validator.new, Tools::Packager.new, Tools::Versioner.new, Tools::Pusher.new ].freeze
Instance Method Summary collapse
- #call(specification) ⇒ Object
-
#initialize(steps: STEPS) ⇒ Publisher
constructor
A new instance of Publisher.
Constructor Details
Instance Method Details
#call(specification) ⇒ Object
24 25 26 27 |
# File 'lib/gemsmith/tools/publisher.rb', line 24 def call specification steps.each { |step| yield step.call(specification) } Success specification end |