Class: Rake::Gem::Maintenance::RubygemsPublishTask
- Inherits:
-
TaskLib
- Object
- TaskLib
- Rake::Gem::Maintenance::RubygemsPublishTask
- Defined in:
- lib/rake/gem/maintenance/rubygems_publish_task.rb
Overview
Defines the publish:rubygems Rake task for pushing a built .gem to rubygems.org.
Expects a .gem file to already exist in the working directory (run gem build first). Uses the GEM_HOST_API_KEY and RUBYGEMS_OTP_SEED env vars configured via Repos.
Constant Summary collapse
- GEM_FILE_GLOB =
"*.gem"
Instance Attribute Summary collapse
-
#gem_file_glob ⇒ Object
Returns the value of attribute gem_file_glob.
-
#gem_publisher_class ⇒ Object
Returns the value of attribute gem_publisher_class.
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ RubygemsPublishTask
constructor
A new instance of RubygemsPublishTask.
Constructor Details
#initialize {|_self| ... } ⇒ RubygemsPublishTask
Returns a new instance of RubygemsPublishTask.
20 21 22 23 24 25 26 27 |
# File 'lib/rake/gem/maintenance/rubygems_publish_task.rb', line 20 def initialize super @gem_file_glob = GEM_FILE_GLOB @gem_publisher_class = GemPublisher yield self if block_given? define_tasks end |
Instance Attribute Details
#gem_file_glob ⇒ Object
Returns the value of attribute gem_file_glob.
18 19 20 |
# File 'lib/rake/gem/maintenance/rubygems_publish_task.rb', line 18 def gem_file_glob @gem_file_glob end |
#gem_publisher_class ⇒ Object
Returns the value of attribute gem_publisher_class.
18 19 20 |
# File 'lib/rake/gem/maintenance/rubygems_publish_task.rb', line 18 def gem_publisher_class @gem_publisher_class end |