cpee 1.3.211 → 1.3.212
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/cockpit/js/instance.js +1 -2
- data/cpee.gemspec +1 -1
- data/tools/cpee +24 -9
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d73a9bb53d9229c30830b55083ce1a8f94ccdb67
|
4
|
+
data.tar.gz: dd414c3f30f5905fac89916c1ae9dae138602482
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44d934d06075d382982f24a1c880032caffc918de1ee86191db25ddc4b4bb6b4cc43a45e9dabfcf7fdd04956eee13ff002fa1946a0d1af21903a35323c50646a
|
7
|
+
data.tar.gz: 54d9791c816f0db90fad04d321ed8c884ad93611531d85ca0f12c3b48aa0194d6a30c38aa27136d2608f655f96fa3ef299a101ee0507b5acffadb5d60ec19037
|
data/cockpit/js/instance.js
CHANGED
@@ -56,11 +56,10 @@ var sub_less = 'topic' + '=' + 'activity' + '&' +// {{{
|
|
56
56
|
'events' + '=' + 'change';// }}}
|
57
57
|
|
58
58
|
$(document).ready(function() {// {{{
|
59
|
-
console.log(location.protocol);
|
60
59
|
if (location.protocol.match(/^file/)) {
|
61
60
|
$("input[name=base-url]").val("http://localhost:" + $('body').data('defaultport'));
|
62
61
|
} else {
|
63
|
-
$("input[name=base-url]").val(location.protocol + "//" + location.
|
62
|
+
$("input[name=base-url]").val(location.protocol + "//" + location.hostname + ":" + $('body').data('defaultport'));
|
64
63
|
}
|
65
64
|
$("button[name=base]").click(function(){ create_instance(null,false); });
|
66
65
|
$("button[name=instance]").click(function(){ ui_activate_tab("#tabinstance"); monitor_instance(false,false); });
|
data/cpee.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "cpee"
|
3
|
-
s.version = "1.3.
|
3
|
+
s.version = "1.3.212"
|
4
4
|
s.platform = Gem::Platform::RUBY
|
5
5
|
s.license = "LGPL-3.0"
|
6
6
|
s.summary = "Preliminary release of cloud process execution engine (cpee). If you just need workflow execution, without a rest/xmpp service exposing it, then use WEEL"
|
data/tools/cpee
CHANGED
@@ -3,17 +3,34 @@ curpath = __dir__
|
|
3
3
|
require 'rubygems'
|
4
4
|
require 'optparse'
|
5
5
|
require 'fileutils'
|
6
|
+
require 'webrick'
|
7
|
+
|
8
|
+
def wrap(s, width=78, indent=10)
|
9
|
+
lines = []
|
10
|
+
line, s = s[0..indent-2], s[indent..-1]
|
11
|
+
s.split(/\s+/).each do |word|
|
12
|
+
if line.size + word.size >= width
|
13
|
+
lines << line
|
14
|
+
line = (" " * (indent)) + word
|
15
|
+
else
|
16
|
+
line << " " << word
|
17
|
+
end
|
18
|
+
end
|
19
|
+
lines << line if line
|
20
|
+
return lines.join "\n"
|
21
|
+
end
|
6
22
|
|
7
23
|
ARGV.options { |opt|
|
8
24
|
opt.summary_indent = ' ' * 2
|
9
|
-
opt.banner = "Usage:\n#{opt.summary_indent}#{File.basename($0)} [options] [
|
25
|
+
opt.banner = "Usage:\n#{opt.summary_indent}#{File.basename($0)} [options] [ui] | [new DIR]\n"
|
10
26
|
opt.on("Options:")
|
11
27
|
opt.on("--help", "-h", "This text") { puts opt; exit }
|
12
|
-
|
13
|
-
opt.on("[
|
28
|
+
opt.on("")
|
29
|
+
opt.on(wrap("[new DIR] scaffolds a sample execution engine. Everything except instances can be removed for default behaviour."))
|
30
|
+
opt.on(wrap("[ui] starts a simple static web server with the ui on http://localhost:8080. Copy #{File.realpath(curpath + '/../cockpit')} if you want stuff in apache or nginx."))
|
14
31
|
opt.parse!
|
15
32
|
}
|
16
|
-
if ARGV.length
|
33
|
+
if ARGV.length == 0 || (ARGV.length == 1 && ARGV[0] != 'ui') || (ARGV.length == 2 && ARGV[1] != 'new') || ARGV.length > 2
|
17
34
|
puts ARGV.options
|
18
35
|
exit
|
19
36
|
end
|
@@ -21,11 +38,9 @@ command = ARGV[0]
|
|
21
38
|
dir = ARGV[1]
|
22
39
|
|
23
40
|
if command == 'ui'
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
puts "File or directory with this name already exists."
|
28
|
-
end
|
41
|
+
s = WEBrick::HTTPServer.new(:Port => 8080, :DocumentRoot => "#{curpath}/../cockpit")
|
42
|
+
trap("INT"){ s.shutdown }
|
43
|
+
s.start
|
29
44
|
else
|
30
45
|
if !File.exists?(dir)
|
31
46
|
FileUtils.cp_r("#{curpath}/server/",dir)
|