src/activities/TranscodeAssetActivity.php 1 location
|
@@ 282-292 (lines=11) @@
|
279 |
|
*/ |
280 |
|
|
281 |
|
// Usage |
282 |
|
function usage() |
283 |
|
{ |
284 |
|
echo("Usage: php ". basename(__FILE__) . " -A <Snf ARN> [-C <client class path>] [-N <activity name>] [-h] [-d] [-l <log path>]\n"); |
285 |
|
echo("-h: Print this help\n"); |
286 |
|
echo("-d: Debug mode\n"); |
287 |
|
echo("-l <log_path>: Location where logs will be dumped in (folder).\n"); |
288 |
|
echo("-A <activity_name>: Activity name this Poller can process. Or use 'SNF_ACTIVITY_ARN' environment variable. Command line arguments have precedence\n"); |
289 |
|
echo("-C <client class path>: Path to the PHP file that contains the class that implements your Client Interface\n"); |
290 |
|
echo("-N <activity name>: Override the default activity name. Useful if you want to have different client interfaces for the same activity type.\n"); |
291 |
|
exit(0); |
292 |
|
} |
293 |
|
|
294 |
|
// Check command line input parameters |
295 |
|
function check_activity_arguments() |
src/activities/ValidateAssetActivity.php 1 location
|
@@ 170-180 (lines=11) @@
|
167 |
|
*/ |
168 |
|
|
169 |
|
// Usage |
170 |
|
function usage() |
171 |
|
{ |
172 |
|
echo("Usage: php ". basename(__FILE__) . " -A <Snf ARN> [-C <client class path>] [-N <activity name>] [-h] [-d] [-l <log path>]\n"); |
173 |
|
echo("-h: Print this help\n"); |
174 |
|
echo("-d: Debug mode\n"); |
175 |
|
echo("-l <log_path>: Location where logs will be dumped in (folder).\n"); |
176 |
|
echo("-A <activity_name>: Activity name this Poller can process. Or use 'SNF_ACTIVITY_ARN' environment variable. Command line arguments have precedence\n"); |
177 |
|
echo("-C <client class path>: Path to the PHP file that contains the class that implements your Client Interface\n"); |
178 |
|
echo("-N <activity name>: Override the default activity name. Useful if you want to have different client interfaces for the same activity type.\n"); |
179 |
|
exit(0); |
180 |
|
} |
181 |
|
|
182 |
|
// Check command line input parameters |
183 |
|
function check_activity_arguments() |
src/scripts/getFromS3.php 1 location
|
@@ 9-18 (lines=10) @@
|
6 |
|
|
7 |
|
require __DIR__ . "/../../vendor/autoload.php"; |
8 |
|
|
9 |
|
function usage() |
10 |
|
{ |
11 |
|
echo("Usage: php ". basename(__FILE__) . " [-h] [--force] --bucket <s3 bucket> --file <filename> --to <filepath>\n"); |
12 |
|
echo("--help, -h: Print this help\n"); |
13 |
|
echo("--bucket <s3 bucket>: Name of the S3 bucket\n"); |
14 |
|
echo("--file <filename>: Name of the file in the S3 bucket\n"); |
15 |
|
echo("--to <filepath>: Full path to file where to save. You can override original filename.\n"); |
16 |
|
echo("--force: Force download even if file exists locally\n\n"); |
17 |
|
exit(0); |
18 |
|
} |
19 |
|
|
20 |
|
function check_input_parameters($options) |
21 |
|
{ |
src/scripts/putInS3.php 1 location
|
@@ 9-19 (lines=11) @@
|
6 |
|
|
7 |
|
require __DIR__ . "/../../vendor/autoload.php"; |
8 |
|
|
9 |
|
function usage() |
10 |
|
{ |
11 |
|
echo("Usage: php ". basename(__FILE__) . " [-h] [--rrs::] [--encrypt::] --bucket <s3 bucket> --file <filename> --from <filepath>\n"); |
12 |
|
echo("--help, -h: Print this help\n"); |
13 |
|
echo("--bucket <s3 bucket>: Name of the S3 bucket\n"); |
14 |
|
echo("--file <filename>: Name of the file to create in bucket. You can override local filename.\n"); |
15 |
|
echo("--from <filepath>: Full path to file to send to S3\n"); |
16 |
|
echo("--rrs: Activate type of storage in S3: REDUCED_REDUNDANCY\n"); |
17 |
|
echo("--encrypt: Activate Server encryption: AES256\n\n"); |
18 |
|
exit(0); |
19 |
|
} |
20 |
|
|
21 |
|
function check_input_parameters(&$options) |
22 |
|
{ |