brainiac-basecamp 0.0.21 → 0.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/brainiac/plugins/basecamp/cli.rb +21 -0
- data/lib/brainiac/plugins/basecamp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cbdaed237c170e246708af6b6f249cc90897b58aa3551eeb563e2a154145b49f
|
|
4
|
+
data.tar.gz: ab6c55d1ef2f88e26194059cb453fda42c3660777ab34813d15b6e88fd5afaf5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 46f0a19b34106661205fc2cc0dc6b921511a04a7a3a2b6df2665c8d1034afc937029ac5b00b11fe3e7f42b52d8fe24bd48ef29705b15211ed76deb8e05bfde8d
|
|
7
|
+
data.tar.gz: a278fc0d456893561a8e320ee223510ef338296605a66e1871099514f711cf3989e2d000f3864371097105c3af6a0afd332ddf87a70910870f45a488cbb1f509
|
|
@@ -284,6 +284,21 @@ module Brainiac
|
|
|
284
284
|
puts " Worktree: #{worktree_path}"
|
|
285
285
|
puts ""
|
|
286
286
|
|
|
287
|
+
# Pull latest changes before deploying
|
|
288
|
+
puts "Pulling latest changes..."
|
|
289
|
+
pull_output, pull_status = Open3.capture2e("git", "pull", "--ff-only", chdir: worktree_path)
|
|
290
|
+
if pull_status.success?
|
|
291
|
+
if pull_output.include?("Already up to date")
|
|
292
|
+
puts "Already up to date."
|
|
293
|
+
else
|
|
294
|
+
puts pull_output.lines.first(5).join
|
|
295
|
+
end
|
|
296
|
+
else
|
|
297
|
+
puts "⚠️ Git pull failed (continuing anyway):"
|
|
298
|
+
puts pull_output.lines.first(3).join
|
|
299
|
+
end
|
|
300
|
+
puts ""
|
|
301
|
+
|
|
287
302
|
# Run deploy
|
|
288
303
|
success = run_deploy(worktree_path, deploy_env)
|
|
289
304
|
|
|
@@ -309,6 +324,12 @@ module Brainiac
|
|
|
309
324
|
end
|
|
310
325
|
|
|
311
326
|
save_epics(epics)
|
|
327
|
+
|
|
328
|
+
# Change into the worktree directory
|
|
329
|
+
puts ""
|
|
330
|
+
puts "Entering worktree..."
|
|
331
|
+
Dir.chdir(worktree_path)
|
|
332
|
+
exec ENV.fetch("SHELL", "/bin/bash")
|
|
312
333
|
end
|
|
313
334
|
|
|
314
335
|
def cmd_link(args)
|