-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgenghistask-workspace.html
More file actions
62 lines (49 loc) · 2.29 KB
/
genghistask-workspace.html
File metadata and controls
62 lines (49 loc) · 2.29 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
59
60
61
62
<script type="text/javascript">
RED.nodes.registerType('genghistask-workspace',{
category: 'config',
defaults: {
workspace: {value:"https://github.com/GenghisTask/Workspace.git",required:true},
//@TODO select a branch
},
label: function() {
return this.workspace;
},
oneditsave: function () {
$.post(`genghistask-workspace?id=${this.id}&workspace=${this.workspace}`);
}
});
</script>
<script type="text/html" data-template-name="genghistask-workspace">
<div class="form-row">
<label for="node-config-input-workspace"><i class="fa fa-bookmark"></i> Git url of a workspace</label>
<input type="text" id="node-config-input-workspace">
</div>
</script>
<script type="text/html" data-help-name="genghistask-workspace">
<p>Config node to store a git url corresponding to a workspace.</p>
<h3>Parameters</h3>
Specify the url of the git repository
<dl class="message-properties">
<dt>Git url <span class="property-type">string</span></dt>
<dd>A git repository. Connection may be secured with <a href="#" onclick="RED.userSettings.show('genghistask-ssh-settings'); return false;">ssh</a></dd>
</dl>
<h3>Recommanded architecture of the git repository</h3>
<dl class="message-properties">
<dt>./shell/
<span class="property-type">folder</span>
</dt>
<dd>All files inside the shell folder will be suggested in the input autocomplete. The genghistask node will execute the selected file.</dd>
<dt>./environment/ssh/config
<span class="property-type">file</span>
</dt>
<dd>All hostnames inside this sshconfig file will be suggested in the input autocomplete. The genghistask node will execute the command remotely using the config.</dd>
<dt>./environment/docker/docker-compose.yml
<span class="property-type">file</span>
</dt>
<dd>All hostnames inside this file will be suggested in the input autocomplete. The genghistask node will execute the command inside an instance of the image</dd>
</dl>
<h3>References</h3>
<ul>
<li><a>Docs</a> https://genghistask.github.io/</li>
</ul>
</script>