robot-controller 0.2.1 → 0.2.2
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/.gitignore +2 -0
- data/VERSION +1 -1
- data/bin/controller +19 -5
- data/example/config/boot.rb +0 -3
- data/example/config/environments/workflows_development.rb +0 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0acb2a8aa3413747076dac05fc5c889357c00fd4
|
4
|
+
data.tar.gz: 8692def8629151ccb3217d591909a3342870d945
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad5c6d906a1fc3cb465d4f42992502bcc54a485d1de556ed004c8776d970e60c1441e4c96c35dbc1d9492d399276f72bcd7fdf1cb2c3113c64c752fae8383329
|
7
|
+
data.tar.gz: a5e75b22049082d804928398d17e86f877ac82c07aa18556709bd8e7f8452aba8f5d00c72bbaccbc8a9c388a70979e0192f055cc2471eae7e15b9f58efbe28cc
|
data/.gitignore
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
data/bin/controller
CHANGED
@@ -2,8 +2,9 @@
|
|
2
2
|
|
3
3
|
if ARGV.size == 0
|
4
4
|
puts '
|
5
|
-
Usage: controller
|
6
|
-
controller
|
5
|
+
Usage: controller ( boot | quit )
|
6
|
+
controller ( start | status | stop | restart | log ) [worker]
|
7
|
+
controller [--help]
|
7
8
|
|
8
9
|
Example:
|
9
10
|
% controller boot # start bluepilld and jobs
|
@@ -11,15 +12,28 @@ Example:
|
|
11
12
|
% controller log dor_accessionWF_descriptive-metadata # view log for worker
|
12
13
|
% controller stop # stop jobs
|
13
14
|
% controller quit # stop bluepilld
|
15
|
+
|
16
|
+
Environment:
|
17
|
+
BLUEPILL_BASEDIR - where bluepill stores its state (default: run/bluepill)
|
18
|
+
BLUEPILL_LOGFILE - output log (default: log/bluepill.log)
|
19
|
+
ROBOT_ENVIRONMENT - (default: development)
|
20
|
+
|
21
|
+
Configuration files (in search order)
|
22
|
+
config/environments/bluepill_development.rb
|
23
|
+
config/environments/bluepill.rb
|
24
|
+
config/bluepill.rb
|
14
25
|
'
|
15
26
|
exit -1
|
16
27
|
end
|
17
28
|
|
18
29
|
ENV['ROBOT_ENVIRONMENT'] ||= 'development'
|
30
|
+
ENV['BLUEPILL_BASE_DIR'] ||= File.expand_path('run/bluepill')
|
31
|
+
ENV['BLUEPILL_LOGFILE'] ||= File.expand_path('log/bluepill.log')
|
19
32
|
|
20
|
-
cmd =
|
21
|
-
cmd <<
|
22
|
-
cmd << " --
|
33
|
+
cmd = 'bluepill'
|
34
|
+
cmd << ' --no-privileged'
|
35
|
+
cmd << " --base-dir #{ENV['BLUEPILL_BASE_DIR']}"
|
36
|
+
cmd << " --logfile #{ENV['BLUEPILL_LOGFILE']}"
|
23
37
|
|
24
38
|
if ARGV[0] == 'boot'
|
25
39
|
["config/environments/bluepill_#{ENV['ROBOT_ENVIRONMENT']}.rb",
|
data/example/config/boot.rb
CHANGED
@@ -23,9 +23,3 @@ WORKFLOW_STEPS = %w{
|
|
23
23
|
WORKFLOW_N = Hash[*%w{
|
24
24
|
dor:assemblyWF:checksum-compute 3
|
25
25
|
}]
|
26
|
-
|
27
|
-
# starts up 2 workers -- one for this priority and another for all
|
28
|
-
# XXX: not implemented
|
29
|
-
WORKFLOW_PRIORITIES = Hash[*%w{
|
30
|
-
dor:assemblyWF:checksum-compute critical,high
|
31
|
-
}]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: robot-controller
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Darren Hardy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-04-
|
11
|
+
date: 2014-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bluepill
|