-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
58 lines (54 loc) · 1.53 KB
/
justfile
File metadata and controls
58 lines (54 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
clear:
R --slave -f clean-ricochet-toml-ids.R
deploy-all server='':
#!/usr/bin/env bash
for toml in $(find . -name '_ricochet.toml' -not -path './.git/*'); do
dir="$(dirname "$toml")"
dir="${dir#./}"
if [[ -n '{{server}}' ]]; then
ricochet deploy "$dir" -S '{{server}}'
else
ricochet deploy "$dir"
fi
done
deploy-all-dev server='':
#!/usr/bin/env bash
for toml in $(find . -name '_ricochet.toml' -not -path './.git/*'); do
dir="$(dirname "$toml")"
dir="${dir#./}"
if [[ -n '{{server}}' ]]; then
ricochet-dev deploy "$dir" -S '{{server}}'
else
ricochet-dev deploy "$dir"
fi
done
delete-all server='':
#!/usr/bin/env bash
for toml in $(find . -name '_ricochet.toml' -not -path './.git/*'); do
id=$(grep '^id' "$toml" | sed 's/.*= *"//' | sed 's/"//')
if [[ -z "$id" ]]; then
echo "No id found in $toml, skipping"
continue
fi
echo "Deleting $id (from $toml)"
if [[ -n '{{server}}' ]]; then
ricochet delete -f "$id" -S '{{server}}'
else
ricochet delete -f "$id"
fi
done
delete-all-dev server='':
#!/usr/bin/env bash
for toml in $(find . -name '_ricochet.toml' -not -path './.git/*'); do
id=$(grep '^id' "$toml" | sed 's/.*= *"//' | sed 's/"//')
if [[ -z "$id" ]]; then
echo "No id found in $toml, skipping"
continue
fi
echo "Deleting $id (from $toml)"
if [[ -n '{{server}}' ]]; then
ricochet-dev delete -f "$id" -S '{{server}}'
else
ricochet-dev delete -f "$id"
fi
done