OLD | NEW |
---|---|
(Empty) | |
1 Assets | |
2 ====== | |
3 | |
4 This directory contains tooling for managing assets used by the bots. The | |
5 primary entry point is assets.py, which allows a user to add, remove, upload, | |
6 and download assets. | |
7 | |
8 Assets are stored in Google Storage, named for their version number. | |
9 | |
10 | |
11 Individual Assets | |
12 ----------------- | |
13 | |
14 Each asset has its own subdirectory with the following contents: | |
15 * VERSION: The current version number of the asset. | |
16 * download.py: Convenience script for downloading the current version of the as set. | |
17 * upload.py: Convenience script for uploading a new version of the asset. | |
18 * [optional] create.py: Script which creates the asset, implemented by the user . | |
19 * [optional] create\_and\_upload.py: Convenience script which combines create.p y with upload.py. | |
20 | |
21 | |
22 Examples | |
23 ------- | |
24 | |
25 Add a new asset and upload an initial version. | |
26 | |
27 ``` | |
28 $ infra/bots/assets/assets.py add myasset | |
29 Add script to automate creation of this asset? (y/n) n | |
stephana
2016/06/15 13:57:30
Can you update this example to include the new FYI
borenet
2016/06/15 14:31:27
Done.
| |
30 $ infra/bots/assets/myasset/upload.py -t ${MY_ASSET_LOCATION} | |
31 $ git commit | |
32 ``` | |
33 | |
34 Add an asset whose creation can be automated. | |
35 | |
36 ``` | |
37 $ infra/bots/assets/assets.py add myasset | |
38 Add script to automate creation of this asset? (y/n) y | |
39 $ vi infra/bots/assets/myasset/create.py | |
40 (implement the create_asset function) | |
41 $ infra/bots/assets/myasset/create_and_upload.py | |
rmistry
2016/06/15 13:47:18
Nit: Do you need \_ here as well?
Also in create_a
borenet
2016/06/15 14:31:27
I don't think so, since it's in the quoted block.
| |
42 $ git commit | |
43 ``` | |
OLD | NEW |