ernie 2.3.0 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ = 2.4.0 / 2010-05-21
2
+ * Minor Additions
3
+ * Add -E cli option for setting extra Erlang VM options
4
+
1
5
  = 2.3.0 / 2010-05-17
2
6
  * Minor Additions
3
7
  * Add 'halt' command for gracefully shutting down
data/README.md CHANGED
@@ -56,9 +56,10 @@ Running
56
56
  -c, --config CONFIG Config file.
57
57
  -p, --port PORT Port.
58
58
  -l, --log-level Log level (0-4).
59
- -a, --access-log LOGFILE Access log file
59
+ -a, --access-log LOGFILE Access log file.
60
60
  -d, --detached Run as a daemon.
61
61
  -P, --pidfile PIDFILE Location to write pid file.
62
+ -E, --erlang ERLANG_OPTIONS Options passed to Erlang VM.
62
63
 
63
64
  Commands:
64
65
  <none> Start an Ernie server.
@@ -75,6 +76,10 @@ Running
75
76
  Reload the handlers for the ernie server currently running on
76
77
  port 9999.
77
78
 
79
+ ernie -c example.cfg -E '-run mymodule'
80
+ Start the ernie server with an additional erlang module called
81
+ 'mymodule'
82
+
78
83
 
79
84
  Configuration File
80
85
  ------------------
@@ -1,5 +1,5 @@
1
1
  ---
2
- :minor: 3
2
+ :minor: 4
3
3
  :build:
4
4
  :patch: 0
5
5
  :major: 2
data/bin/ernie CHANGED
@@ -67,6 +67,10 @@ OptionParser.new do |opts|
67
67
  opts.on("-P", "--pidfile PIDFILE", "Location to write pid file.") do |x|
68
68
  options[:pidfile] = x
69
69
  end
70
+
71
+ opts.on("-E", "--erlang ERLANG_OPTIONS", "Additional parameters to Erlang VM") do |x|
72
+ options[:erl_options] = x
73
+ end
70
74
  end.parse!
71
75
 
72
76
  if command = ARGV[0]
@@ -95,6 +99,7 @@ else
95
99
  pidfile = options[:pidfile] ? "-ernie_server_app pidfile \"'#{options[:pidfile]}'\"" : ''
96
100
  detached = options[:detached] ? '-detached' : ''
97
101
  access_log = options[:access_log] ? "-ernie_server_app access_log '\"#{options[:access_log]}\"'" : ''
102
+ erl_options = options[:erl_options]
98
103
 
99
104
  cmd = %Q{erl -boot start_sasl \
100
105
  #{detached} \
@@ -107,7 +112,8 @@ else
107
112
  -ernie_server_app port #{port} \
108
113
  -ernie_server_app config '"#{config}"' \
109
114
  -ernie_server_app log_level #{log_level} \
110
- -run ernie_server_app boot}.squeeze(' ')
115
+ -run ernie_server_app boot \
116
+ #{erl_options}}.squeeze(' ')
111
117
  puts cmd
112
118
  exec(cmd)
113
- end
119
+ end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ernie}
8
- s.version = "2.3.0"
8
+ s.version = "2.4.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tom Preston-Werner"]
12
- s.date = %q{2010-05-17}
12
+ s.date = %q{2010-05-21}
13
13
  s.default_executable = %q{ernie}
14
14
  s.description = %q{Ernie is an Erlang/Ruby hybrid BERT-RPC server implementation packaged as a gem.}
15
15
  s.email = %q{tom@mojombo.com}
@@ -47,6 +47,7 @@ Gem::Specification.new do |s|
47
47
  "elib/port_wrapper.erl",
48
48
  "ernie.gemspec",
49
49
  "examples/example.cfg",
50
+ "examples/example.config",
50
51
  "examples/ext.erl",
51
52
  "examples/ext.rb",
52
53
  "examples/nat.erl",
@@ -0,0 +1,5 @@
1
+ [{sasl,
2
+ [{sasl_error_logger, {file, "/tmp/sasl/sasl.log"}},
3
+ {error_logger_mf_dir, "/tmp/sasl"},
4
+ {error_logger_mf_maxbytes, 10000000},
5
+ {error_logger_mf_maxfiles, 5}]}].
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 2
7
- - 3
7
+ - 4
8
8
  - 0
9
- version: 2.3.0
9
+ version: 2.4.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Tom Preston-Werner
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-17 00:00:00 -07:00
17
+ date: 2010-05-21 00:00:00 -07:00
18
18
  default_executable: ernie
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -83,6 +83,7 @@ files:
83
83
  - elib/port_wrapper.erl
84
84
  - ernie.gemspec
85
85
  - examples/example.cfg
86
+ - examples/example.config
86
87
  - examples/ext.erl
87
88
  - examples/ext.rb
88
89
  - examples/nat.erl