roda-bin 0.0.3 → 0.0.4
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.rb +33 -0
- data/lib/roda/bin/version.rb +1 -1
- metadata +1 -2
- data/lib/roda/bin/cli.rb +0 -41
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1606828b020778e026f0576965554cde93d01b5d
|
4
|
+
data.tar.gz: e22370eeca0644637e47f5283d36b8d424846921
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1cf39806b923f34bf0aa266ba7cffafdf74191caf848b4081fcb0892908b87f351fd212765726bcf967f92dc7e37c17236130a969ba45d48bb781ec7f80cd12e
|
7
|
+
data.tar.gz: 078a7a75c0d66b7d4b8d01899dcf7fda2a576419e2515fd9945b9d139b5804f1e5ca036f2acfcba2437421f66f79080d13827e413a034c26ee3d280d7d50f63e
|
data/lib/roda/bin.rb
CHANGED
@@ -2,5 +2,38 @@ require "roda/bin/version"
|
|
2
2
|
|
3
3
|
class Roda
|
4
4
|
module BIN
|
5
|
+
extend self
|
6
|
+
|
7
|
+
def server
|
8
|
+
args = [
|
9
|
+
'thin', 'start', '--threaded', '--max-persistent-conns', '300',
|
10
|
+
"--max-conns", "400", "-p", "8080"
|
11
|
+
].concat(argv)
|
12
|
+
|
13
|
+
options = {
|
14
|
+
cmd: args.join(' '),
|
15
|
+
signal: 'TERM',
|
16
|
+
growl: true,
|
17
|
+
name: 'BrowserIO',
|
18
|
+
ignore: [],
|
19
|
+
dir: ["."],
|
20
|
+
pattern: "**/*.{rb,js,coffee,css,scss,sass,styl,erb,html,haml,ru,yml,slim,md}"
|
21
|
+
}
|
22
|
+
|
23
|
+
Rerun::Runner.keep_running(options[:cmd], options)
|
24
|
+
end
|
25
|
+
|
26
|
+
def envs
|
27
|
+
@envs ||= {}
|
28
|
+
end
|
29
|
+
|
30
|
+
private
|
31
|
+
|
32
|
+
def argv
|
33
|
+
@argv ||= begin
|
34
|
+
ARGV.shift
|
35
|
+
ARGV
|
36
|
+
end
|
37
|
+
end
|
5
38
|
end
|
6
39
|
end
|
data/lib/roda/bin/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: roda-bin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cj
|
@@ -109,7 +109,6 @@ files:
|
|
109
109
|
- Rakefile
|
110
110
|
- bin/roda
|
111
111
|
- lib/roda/bin.rb
|
112
|
-
- lib/roda/bin/cli.rb
|
113
112
|
- lib/roda/bin/version.rb
|
114
113
|
- roda-bin.gemspec
|
115
114
|
homepage: ''
|
data/lib/roda/bin/cli.rb
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
require 'rerun'
|
2
|
-
|
3
|
-
class Roda
|
4
|
-
module BIN
|
5
|
-
module CLI
|
6
|
-
extend self
|
7
|
-
|
8
|
-
def server
|
9
|
-
args = [
|
10
|
-
'thin', 'start', '--threaded', '--max-persistent-conns', '300',
|
11
|
-
"--max-conns", "400", "-p", "8080"
|
12
|
-
].concat(argv)
|
13
|
-
|
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
|
-
}
|
23
|
-
|
24
|
-
Rerun::Runner.keep_running(options[:cmd], options)
|
25
|
-
end
|
26
|
-
|
27
|
-
def envs
|
28
|
-
@envs ||= {}
|
29
|
-
end
|
30
|
-
|
31
|
-
private
|
32
|
-
|
33
|
-
def argv
|
34
|
-
@argv ||= begin
|
35
|
-
ARGV.shift
|
36
|
-
ARGV
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|