roda-bin 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/roda/bin/cli.rb +29 -27
- data/lib/roda/bin/version.rb +1 -1
- 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: ab5c4cb976e30a8bad4788a5ef64f721e239228a
|
4
|
+
data.tar.gz: d97c7a25e5b428f04f85f301b6e412114d738bf2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9aab9100060589b7fc20817db298cd1a62df38620c1e5b97b40e800309e3459c59043a13800efd9ef15157fdc287ec2bee095f54579095410235681f33c5ddcf
|
7
|
+
data.tar.gz: 78469db259635d580e4ccfe6403213f84d90368fed51ae92f3015edebb3eefbaa1788b83a55d81f7d425d55d118f9b7bb090e2f958c4d3a49df81f790e818ca3
|
data/lib/roda/bin/cli.rb
CHANGED
@@ -1,38 +1,40 @@
|
|
1
1
|
require 'rerun'
|
2
2
|
|
3
|
-
class
|
4
|
-
module
|
5
|
-
|
3
|
+
class Roda
|
4
|
+
module BIN
|
5
|
+
module CLI
|
6
|
+
extend self
|
6
7
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
def server
|
9
|
+
args = [
|
10
|
+
'thin', 'start', '--threaded', '--max-persistent-conns', '300',
|
11
|
+
"--max-conns", "400", "-p", "8080"
|
12
|
+
].concat(argv)
|
12
13
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
14
|
+
options = {
|
15
|
+
cmd: args.join(' '),
|
16
|
+
signal: 'TERM',
|
17
|
+
growl: true,
|
18
|
+
name: 'BrowserIO',
|
19
|
+
ignore: [],
|
20
|
+
dir: ["."],
|
21
|
+
pattern: "**/*.{rb,js,coffee,css,scss,sass,styl,erb,html,haml,ru,yml,slim,md}"
|
22
|
+
}
|
22
23
|
|
23
|
-
|
24
|
-
|
24
|
+
Rerun::Runner.keep_running(options[:cmd], options)
|
25
|
+
end
|
25
26
|
|
26
|
-
|
27
|
-
|
28
|
-
|
27
|
+
def envs
|
28
|
+
@envs ||= {}
|
29
|
+
end
|
29
30
|
|
30
|
-
|
31
|
+
private
|
31
32
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
33
|
+
def argv
|
34
|
+
@argv ||= begin
|
35
|
+
ARGV.shift
|
36
|
+
ARGV
|
37
|
+
end
|
36
38
|
end
|
37
39
|
end
|
38
40
|
end
|
data/lib/roda/bin/version.rb
CHANGED