rbbt-util 5.30.7 → 5.30.8

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
  SHA256:
3
- metadata.gz: 3275cafa7bc74ca88f5d487287ff736113dad5ee6e607bb13f283bb4aa5e0562
4
- data.tar.gz: 1a7642c60ce3f3828790599c2522ad1e083bd877c53de10401b93735e952934d
3
+ metadata.gz: be64e4af9e06d88f1188ab447f63ea37296d562663ed05945de890d4addd4ce1
4
+ data.tar.gz: c3c984994184f2b980dfb699b5809d88f41eda8f16201c5c403a20850fc4e9e9
5
5
  SHA512:
6
- metadata.gz: bc9717f6611646c099305587bdcf224243102a500ba68047e382df49e583a3c764489e09b7c9aa4993eab3953d72dc9ce206d5450213e1ae832b1622c96fd309
7
- data.tar.gz: 791cdba47b74e1f1fd47c439bb3f2b025e540002ec2b1e18d846bab08c6fd858cc25a94f9c84056383c5125cca22c19f00d43ae0c53a8c77ef4de423c19f0d8c
6
+ metadata.gz: bd1e8251c15b80c44c36e9b270db74aa1aadcc2d2c01ed1b613e715a0b1cc3ca23ecd4d936afd37697de1c1dbb476afd0efecf57a2ddefbbddec5eb81a902ff6
7
+ data.tar.gz: 33e7e4a1c9a22c9900da0dbb2e4530c4b360fc3ef2f3b3abb8fbc72fd657f4d10f63d1064e721c227b7900760b98e6d98acbc776e4cf476107635c96d64bd006
@@ -16,6 +16,7 @@ $ rbbt workflow server [options] <Workflow>
16
16
  -B--Bind* Bind IP
17
17
  -p--port* TCP port
18
18
  -s--server* Server type: thin, webrick, unicorn, etc
19
+ -so--server_options* Additional options for server (e.g. option1=value1;option2=value2)
19
20
  -f--finder Start server with finder functionality
20
21
  -RS--Rserve_session* Rserve session to use, otherwise start new one
21
22
  -wd--workdir* Change the working directory of the workflow
@@ -32,7 +33,6 @@ $ rbbt workflow server [options] <Workflow>
32
33
  --export_synchronous* Export workflow tasks as synchronous
33
34
  --export_exec* Export workflow tasks as exec
34
35
  --export_stream* Export workflow tasks as stream
35
- --options* Additional options for server (e.g. option1=value1;option2=value2)
36
36
  EOF
37
37
 
38
38
  if options[:help]
@@ -108,20 +108,24 @@ TmpFile.with_file do |app_dir|
108
108
  config_ru_file = File.exist?('./workflow_config.ru') ? './workflow_config.ru' : Rbbt.share['workflow_config.ru'].find
109
109
 
110
110
 
111
- if options[:options]
112
- options[:options].split(";").each do |pair|
111
+ if options[:server_options]
112
+ options[:server_options].split(";").each do |pair|
113
113
  name, _sep, value = pair.partition("=")
114
114
  name = name[1..-1].to_sym if name[0] == ':'
115
+ value = value.to_i if value =~ /^\d+$/
116
+ value = true if value == "true"
117
+ value = false if value == "false"
115
118
  options[name] = value
116
119
  end
120
+ options.delete :server_options
117
121
  end
118
122
 
119
123
  case server
120
124
  when 'unicorn'
121
125
  `env RBBT_LOG=#{Log.severity.to_s} unicorn -c #{ Rbbt.share['unicorn.rb'].find } '#{config_ru_file}' -p #{options[:Port] || "2887"}`
122
- when 'puma_alt'
126
+ when 'puma_production'
123
127
  #`puma '#{config_ru_file}' -p #{options[:Port] || "2887"} -w 3 -t 8:32 --preload`
124
- `env RBBT_LOG=#{Log.severity.to_s} puma '#{config_ru_file}' -p #{options[:Port] || "2887"} -w 20 -t 10:160 --preload`
128
+ CMD.cmd_log("env RBBT_LOG=#{Log.severity.to_s} puma '#{config_ru_file}' -p #{options[:Port] || "2887"} -w 20 -t 10:160 --preload")
125
129
  else
126
130
  options[:config] = config_ru_file
127
131
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-util
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.30.7
4
+ version: 5.30.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-10 00:00:00.000000000 Z
11
+ date: 2021-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake