WIP: stage all uncommitted work — sprints 46-221, graduation headers, specialist fleet, test steps 909-1988
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
9
example_projects/bash_log_shipper/PROJECT_META.md
Normal file
9
example_projects/bash_log_shipper/PROJECT_META.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# bash_log_shipper
|
||||
|
||||
- stack: bash
|
||||
- validator: bash -n bin/ship_logs.sh
|
||||
- common_failure_modes: path misuse, quoting, retention config mismatch
|
||||
|
||||
## Scope
|
||||
|
||||
Small representative project for training data generation.
|
||||
7
example_projects/bash_log_shipper/TASKS.md
Normal file
7
example_projects/bash_log_shipper/TASKS.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# Task Seeds: bash_log_shipper
|
||||
|
||||
bin/ship_logs.sh, etc/shipper.conf
|
||||
|
||||
## Validator
|
||||
|
||||
`bash -n bin/ship_logs.sh`
|
||||
6
example_projects/bash_log_shipper/bin/ship_logs.sh
Executable file
6
example_projects/bash_log_shipper/bin/ship_logs.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
SRC="${1:-/var/log/app.log}"
|
||||
DST="${2:-/tmp/app.log.gz}"
|
||||
gzip -c "$SRC" > "$DST"
|
||||
echo "$DST"
|
||||
2
example_projects/bash_log_shipper/etc/shipper.conf
Normal file
2
example_projects/bash_log_shipper/etc/shipper.conf
Normal file
@@ -0,0 +1,2 @@
|
||||
retention_days=7
|
||||
max_size_mb=50
|
||||
Reference in New Issue
Block a user