rbbt-util 5.5.48 → 5.5.49
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/rbbt/resource/path.rb +3 -4
- data/share/rbbt_commands/app/start +5 -3
- data/share/rbbt_commands/workflow/server +3 -1
- data/share/unicorn.rb +13 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
M2MyZWMzOTc4ODRkYTkzZDg1MTY2ZDlhZGMzN2NkMWE5YTJiN2JiZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjhmN2VjNzljNDMzOTlkNzRiMmNhOWE1ZDM0YmI4ZWIxYTkwNzE4NQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YTVkM2M1MjdkMzJjYmZlMmJiM2NlM2UwYzNjNDg2ZWQxMDkxZjRiMTEwMWZk
|
10
|
+
Yjg5YWMxNGUzN2VlOGU4YmFlMDc5ZGZmZTdlOTRkMmI1NWI2NzQ4OTI0ODZm
|
11
|
+
YWZmMzE1ODJmZWM4MTBlNWE0M2U4YWNkNzI0YWEyYWQ2ZmJmZjI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OGI2OTYyYzRkZmE0Y2ZhMjY2OWFhZDAwNGU0MzVkOTk3MzQwNWY2YzY0ZGM0
|
14
|
+
ZTAxNzEzNzkxODZhYjBiZmMzNDc0MjBmM2RhM2MwMTRlYjYwZDc3NmRkZDE1
|
15
|
+
ODU0MjhiNmM0ZWRlMjc5Mzc4Y2FlMjU2NDczODU2N2Y5YmJlM2Y=
|
data/lib/rbbt/resource/path.rb
CHANGED
@@ -122,13 +122,12 @@ module Path
|
|
122
122
|
end
|
123
123
|
|
124
124
|
def find_all(caller_lib = nil, search_paths = nil)
|
125
|
-
search_paths ||= SEARCH_PATHS
|
125
|
+
search_paths ||= self.search_paths || SEARCH_PATHS
|
126
126
|
search_paths = search_paths.dup
|
127
127
|
|
128
128
|
search_paths.keys.
|
129
|
-
collect{|where| find(where, Path.caller_lib_dir, search_paths)}.
|
130
|
-
compact.select{|file| file.exists?}.uniq
|
131
|
-
|
129
|
+
collect{|where| find(where, Path.caller_lib_dir, search_paths) }.
|
130
|
+
compact.select{|file| file.exists? }.uniq
|
132
131
|
end
|
133
132
|
|
134
133
|
#{{{ Methods
|
@@ -18,9 +18,11 @@ Misc.in_dir(app_dir) do
|
|
18
18
|
ENV["RBBT_FINDER"] = "true" if options.include?(:finder)
|
19
19
|
ENV["RACK_ENV"] = options[:environment] if options.include?(:environment)
|
20
20
|
|
21
|
-
|
22
|
-
|
21
|
+
config_ru_file = File.exists?('config.ru') ? 'config.ru' : Rbbt.share['config.ru'].find
|
22
|
+
|
23
|
+
if server == 'unicorn'
|
24
|
+
`unicorn -c #{ Rbbt.share['unicorn.rb'].find } '#{config_ru_file}' -p #{options[:port] || "2887"}`
|
23
25
|
else
|
24
|
-
|
26
|
+
Rack::Server.start(options.merge(:config => config_ru_file))
|
25
27
|
end
|
26
28
|
end
|
@@ -12,7 +12,7 @@ require 'rbbt/rest/workflow'
|
|
12
12
|
require 'rbbt/rest/file_server'
|
13
13
|
require 'rbbt/rest/helpers'
|
14
14
|
|
15
|
-
options = SOPT.get "-e--environment*:-p--port*"
|
15
|
+
options = SOPT.get "-e--environment*:-p--port*:-s--server*:-b--bind*"
|
16
16
|
|
17
17
|
workflow = ARGV.first
|
18
18
|
|
@@ -64,4 +64,6 @@ WorkflowRest.add_workflow Workflow.workflows.last, true
|
|
64
64
|
|
65
65
|
WorkflowRest.port = options[:port] || 4567
|
66
66
|
WorkflowRest.bind = options[:bind] || "0.0.0.0"
|
67
|
+
WorkflowRest.environment = options[:environment] || "0.0.0.0"
|
68
|
+
WorkflowRest.server = options[:server] if options[:server]
|
67
69
|
WorkflowRest.run!
|
data/share/unicorn.rb
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
worker_processes 4
|
2
|
+
timeout 30
|
3
|
+
|
4
|
+
@app_path = Dir.pwd
|
5
|
+
@port = "2887"
|
6
|
+
|
7
|
+
#socket_file = "#{@app_path}/tmp/sockets/unicorn.sock"
|
8
|
+
#FileUtils.mkdir_p File.dirname(socket_file)
|
9
|
+
#listen socket_file, :backlog => 64
|
10
|
+
|
11
|
+
pid_file = "#{@app_path}/tmp/pids/unicorn.pid"
|
12
|
+
FileUtils.mkdir_p File.dirname(pid_file)
|
13
|
+
pid pid_file
|
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.5.
|
4
|
+
version: 5.5.49
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Miguel Vazquez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -198,6 +198,7 @@ files:
|
|
198
198
|
- share/rbbt_commands/workflow/remote/remove
|
199
199
|
- share/rbbt_commands/workflow/server
|
200
200
|
- share/rbbt_commands/workflow/task
|
201
|
+
- share/unicorn.rb
|
201
202
|
- test/rbbt/association/test_index.rb
|
202
203
|
- test/rbbt/association/test_item.rb
|
203
204
|
- test/rbbt/resource/test_path.rb
|