moko 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/mokoup +7 -2
- metadata +3 -3
data/bin/mokoup
CHANGED
@@ -33,11 +33,16 @@ class MokoUp < Thor
|
|
33
33
|
end
|
34
34
|
|
35
35
|
desc "server", "startup the underlying moco server"
|
36
|
-
method_option :
|
36
|
+
method_option :daemon, :aliases => '-d'
|
37
37
|
def server
|
38
38
|
download_moco_if_needed
|
39
39
|
moco = File.join(File.dirname(File.expand_path(__FILE__)), "moco/moco-runner-standalone.jar")
|
40
|
-
|
40
|
+
|
41
|
+
if options[:daemon]
|
42
|
+
run "nohup java -jar #{moco} start -p 12306 -c conf/moko.conf.json < /dev/null > moco.std.log 2>&1 &"
|
43
|
+
else
|
44
|
+
run "java -jar #{moco} start -p 12306 -c conf/moko.conf.json"
|
45
|
+
end
|
41
46
|
end
|
42
47
|
|
43
48
|
desc "generate", "generate moco configuration and restful resources"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moko
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-08-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
version: '0'
|
76
76
|
requirements: []
|
77
77
|
rubyforge_project:
|
78
|
-
rubygems_version: 1.8.
|
78
|
+
rubygems_version: 1.8.25
|
79
79
|
signing_key:
|
80
80
|
specification_version: 3
|
81
81
|
summary: moko is a helper for build restful API in secs
|