robot-controller 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 851d1325290f4f380a96c4ea9cfa145cab641bae
4
- data.tar.gz: f5b352dc771d7748faaf998ad34f5be12b3fb3f9
3
+ metadata.gz: 0acb2a8aa3413747076dac05fc5c889357c00fd4
4
+ data.tar.gz: 8692def8629151ccb3217d591909a3342870d945
5
5
  SHA512:
6
- metadata.gz: 5feda681dd061289ca70b4979d09d12b093a535c2bed25352ee79c5b8102ff86c3a072897573692e20879d9166a4d4a766eb96fb36219166fdd06324dd5cb3c5
7
- data.tar.gz: 8337653c9a1ad2052fe6686bd1458fa8a4a6af25fb508060cbb134a2b5289ad4e964000cfd217413428ff792eb9fe681846630b979607095aa778640b3dfde5f
6
+ metadata.gz: ad5c6d906a1fc3cb465d4f42992502bcc54a485d1de556ed004c8776d970e60c1441e4c96c35dbc1d9492d399276f72bcd7fdf1cb2c3113c64c752fae8383329
7
+ data.tar.gz: a5e75b22049082d804928398d17e86f877ac82c07aa18556709bd8e7f8452aba8f5d00c72bbaccbc8a9c388a70979e0192f055cc2471eae7e15b9f58efbe28cc
data/.gitignore CHANGED
@@ -35,3 +35,5 @@ build/
35
35
 
36
36
  # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
37
37
  .rvmrc
38
+
39
+ config/environments
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
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 [ boot | quit ]
6
- controller [ start | status | stop | restart | log ] [worker]
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 = "bluepill --no-privileged"
21
- cmd << " --base-dir #{ENV['BLUEPILL_BASE_DIR'] || File.expand_path('run/bluepill')}"
22
- cmd << " --logfile #{ENV['BLUEPILL_LOGFILE'] || File.expand_path('log/bluepill.log')}"
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",
@@ -31,10 +31,7 @@ REDIS_URL ||= "localhost:6379/resque:#{ENV['ROBOT_ENVIRONMENT']}"
31
31
  Resque.redis = REDIS_URL
32
32
 
33
33
  require 'active_support/core_ext' # camelcase
34
- require 'druid-tools'
35
34
  require 'robot-controller'
36
- require 'robots'
37
-
38
35
 
39
36
 
40
37
 
@@ -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.1
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-14 00:00:00.000000000 Z
11
+ date: 2014-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bluepill