Skip to content

Commit

Permalink
Extract the bundle install to a method
Browse files Browse the repository at this point in the history
  • Loading branch information
saturnflyer committed Sep 14, 2024
1 parent 66b610c commit 611fc03
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions lib/reissue/rake.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,20 @@ def push_reissue?
!!push_reissue
end

def bundle
if defined?(Bundler)
Bundler.with_unbundled_env do
system("bundle install")
end
end
end

def define
desc description
task name, [:segment] do |task, args|
segment = args[:segment] || "patch"
new_version = formatter.call(segment:, version_file:, version_limit:, version_redo_proc:)
if defined?(Bundler)
Bundler.with_unbundled_env do
system("bundle install")
end
end
bundle

system("git add -u")
if updated_paths&.any?
Expand Down

0 comments on commit 611fc03

Please sign in to comment.