Skip to content

Commit 62fbc5d

Browse files
authored
Merge pull request #2 from nextcloud/enhancement/1/naming
s/files_external_script/workflow_script/g
2 parents 4b094d7 + 1bef74f commit 62fbc5d

File tree

13 files changed

+56
-56
lines changed

13 files changed

+56
-56
lines changed

.drone.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ pipeline:
77
syntax-php7.0:
88
image: nextcloudci/php7.0:php7.0-19
99
environment:
10-
- APP_NAME=files_external_script
10+
- APP_NAME=workflow_script
1111
- CORE_BRANCH=master
1212
- DB=sqlite
1313
commands:
@@ -23,7 +23,7 @@ pipeline:
2323
signed-off-check:
2424
image: nextcloudci/php7.0:php7.0-19
2525
environment:
26-
- APP_NAME=files_external_script
26+
- APP_NAME=workflow_script
2727
- CORE_BRANCH=master
2828
- DB=sqlite
2929
commands:

.github/contributing.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
### Short version
44

5-
* The [**issue template can be found here**](https://raw.github.com/nextcloud/files_external_script/master/.github/issue_template.md) but be aware of the different repositories! See list below. Please always use the issue template when reporting issues.
5+
* The [**issue template can be found here**](https://raw.github.com/nextcloud/workflow_script/master/.github/issue_template.md) but be aware of the different repositories! See list below. Please always use the issue template when reporting issues.
66

77
### Guidelines
88
* Please search the existing issues first, it's likely that your issue was already reported or even fixed.
99
- Go to one of the repositories, click "issues" and type any word in the top search/command bar.
1010
- You can also filter by appending e. g. "state:open" to the search string.
1111
- More info on [search syntax within github](https://help.github.com/articles/searching-issues)
12-
* Report the issue using our [template](https://raw.github.com/nextcloud/files_external_script/master/.github/issue_template.md), it includes all the informations we need to track down the issue.
12+
* Report the issue using our [template](https://raw.github.com/nextcloud/workflow_script/master/.github/issue_template.md), it includes all the informations we need to track down the issue.
1313

1414
If your issue appears to be a bug, and hasn't been reported, open a new issue.
1515

@@ -18,7 +18,7 @@ Help us to maximize the effort we can spend fixing issues and adding new feature
1818

1919
## Contributing to Source Code
2020

21-
Thanks for wanting to contribute source code to the Files External Script app. That's great!
21+
Thanks for wanting to contribute source code to the Workflow Script app. That's great!
2222

2323
## Translations
24-
Please submit translations via [Transifex](https://www.transifex.com/nextcloud/nextcloud/files_external_script/).
24+
Please submit translations via [Transifex](https://www.transifex.com/nextcloud/nextcloud/workflow_script/).

.github/issue_template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ Tell us what should happen
99
### Actual behaviour
1010
Tell us what happens instead
1111

12-
## Files External Script app
12+
## Workflow Script app
1313

14-
**Files External Script app version:** (see apps admin page: `/index.php/settings/apps`)
14+
**Workflow Script app version:** (see apps admin page: `/index.php/settings/apps`)
1515

1616
## Server configuration
1717
<!--

.tx/config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
host = https://www.transifex.com
33
lang_map = bg_BG: bg, cs_CZ: cs, fi_FI: fi, hu_HU: hu, nb_NO: nb, sk_SK: sk, th_TH: th, ja_JP: ja
44

5-
[nextcloud.files_external_script]
6-
file_filter = translationfiles/<lang>/files_external_script.po
7-
source_file = translationfiles/templates/files_external_script.pot
5+
[nextcloud.workflow_script]
6+
file_filter = translationfiles/<lang>/workflow_script.po
7+
source_file = translationfiles/templates/workflow_script.pot
88
source_lang = en
99
type = PO

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Nextcloud Files External Script app
1+
# Nextcloud Workflow Script app
22

33
This app enables Nextcloud to pass on files to external scripts when they were created or changed. By utilizing the workflow engine it allows Nextcloud administrators to define rules upon which matching files are enqueued to be run against a specified script. Eventually, the command is executed in a background job.
44

appinfo/app.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
*
2222
*/
2323

24-
$app = new \OCA\FilesExternalScript\AppInfo\Application();
24+
$app = new \OCA\WorkflowScript\AppInfo\Application();
2525
$app->registerHooksAndListeners();

appinfo/info.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
<?xml version="1.0"?>
22
<info xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance"
33
xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
4-
<id>files_external_script</id>
5-
<name>Files against External Scripts</name>
4+
<id>workflow_script</id>
5+
<name>Workflow external scripts</name>
66
<summary>Rule based processing of files through specified external scripts</summary>
77
<description>Pass files on to external scripts depending on a defined set of rules.</description>
88
<version>1.0.0</version>
99
<licence>agpl</licence>
1010
<author mail="[email protected]">Arthur Schiwon</author>
11-
<namespace>FilesExternalScript</namespace>
11+
<namespace>WorkflowScript</namespace>
1212
<category>files</category>
1313
<category>tools</category>
1414
<category>organization</category>
15-
<website>https://github.com/nextcloud/files_external_script</website>
16-
<bugs>https://github.com/nextcloud/files_external_script/issues</bugs>
17-
<repository type="git">https://github.com/nextcloud/files_external_script.git</repository>
18-
<screenshot small-thumbnail="https://raw.githubusercontent.com/nextcloud/files_external_script/master/screenshots/settings.png">https://raw.githubusercontent.com/nextcloud/files_external_script/master/screenshots/settings-small.png</screenshot>
19-
<screenshot small-thumbnail="https://raw.githubusercontent.com/nextcloud/files_external_script/master/screenshots/example_rule-small.png">https://raw.githubusercontent.com/nextcloud/files_external_script/master/screenshots/example_rule.png</screenshot>
15+
<website>https://github.com/nextcloud/workflow_script</website>
16+
<bugs>https://github.com/nextcloud/workflow_script/issues</bugs>
17+
<repository type="git">https://github.com/nextcloud/workflow_script.git</repository>
18+
<screenshot small-thumbnail="https://raw.githubusercontent.com/nextcloud/workflow_script/master/screenshots/settings.png">https://raw.githubusercontent.com/nextcloud/workflow_script/master/screenshots/settings-small.png</screenshot>
19+
<screenshot small-thumbnail="https://raw.githubusercontent.com/nextcloud/workflow_script/master/screenshots/example_rule-small.png">https://raw.githubusercontent.com/nextcloud/workflow_script/master/screenshots/example_rule.png</screenshot>
2020
<dependencies>
2121
<nextcloud min-version="15" max-version="15" />
2222
</dependencies>
2323
<settings>
24-
<admin>OCA\FilesExternalScript\Settings\Admin</admin>
25-
<admin-section>OCA\FilesExternalScript\Settings\Section</admin-section>
24+
<admin>OCA\WorkflowScript\Settings\Admin</admin>
25+
<admin-section>OCA\WorkflowScript\Settings\Section</admin-section>
2626
</settings>
2727
</info>

js/admin.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,61 +19,61 @@
1919
*/
2020

2121
(function() {
22-
OCA.FilesExternalScript = OCA.FilesExternalScript || {};
22+
OCA.WorkflowScript = OCA.WorkflowScript || {};
2323

2424
/**
25-
* @class OCA.FilesExternalScript.Operation
25+
* @class OCA.WorkflowScript.Operation
2626
*/
27-
OCA.FilesExternalScript.Operation =
27+
OCA.WorkflowScript.Operation =
2828
OCA.WorkflowEngine.Operation.extend({
2929
defaults: {
30-
'class': 'OCA\\FilesExternalScript\\Operation',
30+
'class': 'OCA\\WorkflowScript\\Operation',
3131
'name': '',
3232
'checks': [],
3333
'operation': ''
3434
}
3535
});
3636

3737
/**
38-
* @class OCA.FilesExternalScript.OperationsCollection
38+
* @class OCA.WorkflowScript.OperationsCollection
3939
*
4040
* collection for all configured operations
4141
*/
42-
OCA.FilesExternalScript.OperationsCollection =
42+
OCA.WorkflowScript.OperationsCollection =
4343
OCA.WorkflowEngine.OperationsCollection.extend({
44-
model: OCA.FilesExternalScript.Operation
44+
model: OCA.WorkflowScript.Operation
4545
});
4646

4747
/**
48-
* @class OCA.FilesExternalScript.OperationView
48+
* @class OCA.WorkflowScript.OperationView
4949
*
5050
* this creates the view for a single operation
5151
*/
52-
OCA.FilesExternalScript.OperationView =
52+
OCA.WorkflowScript.OperationView =
5353
OCA.WorkflowEngine.OperationView.extend({
54-
model: OCA.FilesExternalScript.Operation,
54+
model: OCA.WorkflowScript.Operation,
5555
render: function() {
5656
var $el = OCA.WorkflowEngine.OperationView.prototype.render.apply(this);
5757
$el.find('input.operation-operation')
5858
.css('width', '400px')
59-
.attr("placeholder", t('files_external_script', 'command to execute'))
59+
.attr("placeholder", t('workflow_script', 'command to execute'))
6060
}
6161
});
6262

6363
/**
64-
* @class OCA.FilesExternalScript.OperationsView
64+
* @class OCA.WorkflowScript.OperationsView
6565
*
6666
* this creates the view for configured operations
6767
*/
68-
OCA.FilesExternalScript.OperationsView =
68+
OCA.WorkflowScript.OperationsView =
6969
OCA.WorkflowEngine.OperationsView.extend({
7070
initialize: function() {
7171
OCA.WorkflowEngine.OperationsView.prototype.initialize.apply(this, [
72-
'OCA\\FilesExternalScript\\Operation'
72+
'OCA\\WorkflowScript\\Operation'
7373
]);
7474
},
7575
renderOperation: function(operation) {
76-
var subView = new OCA.FilesExternalScript.OperationView({
76+
var subView = new OCA.WorkflowScript.OperationView({
7777
model: operation
7878
});
7979

@@ -88,9 +88,9 @@
8888
$(document).ready(function() {
8989
OC.SystemTags.collection.fetch({
9090
success: function() {
91-
new OCA.FilesExternalScript.OperationsView({
92-
el: '#files_external_script .rules',
93-
collection: new OCA.FilesExternalScript.OperationsCollection()
91+
new OCA.WorkflowScript.OperationsView({
92+
el: '#workflow_script .rules',
93+
collection: new OCA.WorkflowScript.OperationsCollection()
9494
});
9595
}
9696
});

lib/AppInfo/Application.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
*
2222
*/
2323

24-
namespace OCA\FilesExternalScript\AppInfo;
24+
namespace OCA\WorkflowScript\AppInfo;
2525

26-
use OCA\FilesExternalScript\Operation;
26+
use OCA\WorkflowScript\Operation;
2727
use OCP\AppFramework\QueryException;
2828
use OCP\Files\Folder;
2929
use OCP\Files\Node;
@@ -35,7 +35,7 @@ class Application extends \OCP\AppFramework\App {
3535
* Application constructor.
3636
*/
3737
public function __construct() {
38-
parent::__construct('files_external_script');
38+
parent::__construct('workflow_script');
3939
}
4040

4141
protected function handleEvent(Node $node, string $eventName, array $extra = []) {
@@ -51,7 +51,7 @@ protected function handleEvent(Node $node, string $eventName, array $extra = [])
5151
$operation->considerScript($node, $eventName, $extra);
5252
} catch (QueryException $e) {
5353
$logger = $this->getContainer()->getServer()->getLogger();
54-
$logger->logException($e, ['app' => 'files_external_script', 'level' => ILogger::ERROR]);
54+
$logger->logException($e, ['app' => 'workflow_script', 'level' => ILogger::ERROR]);
5555
}
5656
}
5757

lib/BackgroundJobs/Launcher.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*
2222
*/
2323

24-
namespace OCA\FilesExternalScript\BackgroundJobs;
24+
namespace OCA\WorkflowScript\BackgroundJobs;
2525

2626
use OCP\Files\IRootFolder;
2727
use OCP\Files\NotFoundException;
@@ -60,7 +60,7 @@ protected function run($argument) {
6060
$view = new \OC\Files\View(dirname($path));
6161
$tmpFile = $view->toTmpFile(basename($path));
6262
} catch (\Exception $e) {
63-
$this->logger->logException($e, ['level' => ILogger::WARN, 'app' => 'files_external_script']);
63+
$this->logger->logException($e, ['level' => ILogger::WARN, 'app' => 'workflow_script']);
6464
return;
6565
}
6666
$command = str_replace('%f', escapeshellarg($tmpFile), $command);
@@ -71,7 +71,7 @@ protected function run($argument) {
7171
$wrapper = 'sh -c ' . escapeshellarg($command) . ' >/dev/null &';
7272
$this->logger->info(
7373
'executing {script}',
74-
['app' => 'files_external_script', 'script' => $wrapper]
74+
['app' => 'workflow_script', 'script' => $wrapper]
7575
);
7676
shell_exec($wrapper);
7777
}

0 commit comments

Comments
 (0)