Class: Rake::GemMaintenance::UpgradeTask
- Inherits:
-
TaskLib
- Object
- TaskLib
- Rake::GemMaintenance::UpgradeTask
- Defined in:
- lib/rake/gem/maintenance/upgrade_task.rb
Overview
Defines Rake tasks for upgrading gem dependencies.
Creates: upgrade, upgrade:auto, upgrade:branch, upgrade:gems, upgrade:commit, upgrade:push
Instance Attribute Summary collapse
-
#auto_pipeline ⇒ Object
Returns the value of attribute auto_pipeline.
-
#commit_message ⇒ Object
Returns the value of attribute commit_message.
-
#files_to_commit ⇒ Object
Returns the value of attribute files_to_commit.
-
#main_branch ⇒ Object
Returns the value of attribute main_branch.
-
#name ⇒ Object
Returns the value of attribute name.
-
#release_task ⇒ Object
Returns the value of attribute release_task.
-
#run_bundle_audit ⇒ Object
Returns the value of attribute run_bundle_audit.
-
#update_gems ⇒ Object
Returns the value of attribute update_gems.
-
#update_rubygems ⇒ Object
Returns the value of attribute update_rubygems.
-
#upgrade_branch ⇒ Object
Returns the value of attribute upgrade_branch.
-
#verification_task ⇒ Object
Returns the value of attribute verification_task.
-
#version_bump_task ⇒ Object
Returns the value of attribute version_bump_task.
Instance Method Summary collapse
-
#initialize(name = :upgrade) {|_self| ... } ⇒ UpgradeTask
constructor
rubocop:disable Metrics/MethodLength.
Constructor Details
#initialize(name = :upgrade) {|_self| ... } ⇒ UpgradeTask
rubocop:disable Metrics/MethodLength
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/rake/gem/maintenance/upgrade_task.rb', line 18 def initialize(name = :upgrade) # rubocop:disable Metrics/MethodLength super() @name = name @main_branch = "main" @upgrade_branch = "upgrade/gems" @commit_message = "chore(deps): upgrade gems" @files_to_commit = %w[Gemfile Gemfile.lock] @verification_task = :verify @release_task = :release @version_bump_task = "version:bump" @update_rubygems = true @update_gems = true @run_bundle_audit = true @auto_pipeline = nil yield self if block_given? define_tasks end |
Instance Attribute Details
#auto_pipeline ⇒ Object
Returns the value of attribute auto_pipeline.
13 14 15 |
# File 'lib/rake/gem/maintenance/upgrade_task.rb', line 13 def auto_pipeline @auto_pipeline end |
#commit_message ⇒ Object
Returns the value of attribute commit_message.
13 14 15 |
# File 'lib/rake/gem/maintenance/upgrade_task.rb', line 13 def @commit_message end |
#files_to_commit ⇒ Object
Returns the value of attribute files_to_commit.
13 14 15 |
# File 'lib/rake/gem/maintenance/upgrade_task.rb', line 13 def files_to_commit @files_to_commit end |
#main_branch ⇒ Object
Returns the value of attribute main_branch.
13 14 15 |
# File 'lib/rake/gem/maintenance/upgrade_task.rb', line 13 def main_branch @main_branch end |
#name ⇒ Object
Returns the value of attribute name.
13 14 15 |
# File 'lib/rake/gem/maintenance/upgrade_task.rb', line 13 def name @name end |
#release_task ⇒ Object
Returns the value of attribute release_task.
13 14 15 |
# File 'lib/rake/gem/maintenance/upgrade_task.rb', line 13 def release_task @release_task end |
#run_bundle_audit ⇒ Object
Returns the value of attribute run_bundle_audit.
13 14 15 |
# File 'lib/rake/gem/maintenance/upgrade_task.rb', line 13 def run_bundle_audit @run_bundle_audit end |
#update_gems ⇒ Object
Returns the value of attribute update_gems.
13 14 15 |
# File 'lib/rake/gem/maintenance/upgrade_task.rb', line 13 def update_gems @update_gems end |
#update_rubygems ⇒ Object
Returns the value of attribute update_rubygems.
13 14 15 |
# File 'lib/rake/gem/maintenance/upgrade_task.rb', line 13 def update_rubygems @update_rubygems end |
#upgrade_branch ⇒ Object
Returns the value of attribute upgrade_branch.
13 14 15 |
# File 'lib/rake/gem/maintenance/upgrade_task.rb', line 13 def upgrade_branch @upgrade_branch end |
#verification_task ⇒ Object
Returns the value of attribute verification_task.
13 14 15 |
# File 'lib/rake/gem/maintenance/upgrade_task.rb', line 13 def verification_task @verification_task end |
#version_bump_task ⇒ Object
Returns the value of attribute version_bump_task.
13 14 15 |
# File 'lib/rake/gem/maintenance/upgrade_task.rb', line 13 def version_bump_task @version_bump_task end |