Skip to content

Commit 4ec6f67

Browse files
committed
feat: server:statusタスクを追加してサーバー状態確認をRake統合
- scripts/utils/check_server_status.rbをRakeタスクとして統合 - 他のツールと同様の一貫したインターフェースを提供 - 使用法: rake server:status[サーバー名]
1 parent 60f8f0d commit 4ec6f67

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

Rakefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,22 @@ namespace :server do
417417
end
418418
end
419419

420+
# ========================================
421+
# サーバー状態確認タスク
422+
# ========================================
423+
desc "サーバーの詳細状態を確認"
424+
task :status, [:server_name] => [:check_api_credentials] do |t, args|
425+
server_name = args[:server_name]
426+
427+
unless server_name
428+
abort "❌ エラー: サーバー名が必要です\n" \
429+
"使い方: rake server:status[coderdojo-japan]"
430+
end
431+
432+
puts "🔍 サーバー状態を確認中: #{server_name}"
433+
sh "ruby scripts/utils/check_server_status.rb #{server_name}", verbose: false
434+
end
435+
420436
# ========================================
421437
# 個別サーバー作成タスク(テスト用)
422438
# ========================================

0 commit comments

Comments
 (0)