Top Level Namespace
Defined Under Namespace
Classes: Ernie
Constant Summary collapse
- ERNIE_ROOT =
File.join(File.dirname(__FILE__), *%w[..])
- DEFAULT_ERLANG_CODEPATHS =
%w[ebin]
- DEFAULT_PORT =
8000
Instance Method Summary collapse
- #code_paths ⇒ Object
-
#logfile(name) ⇒ Object
Root level calls.
- #loglevel(level) ⇒ Object
- #rel(path) ⇒ Object
- #version ⇒ Object
Instance Method Details
#code_paths ⇒ Object
13 14 15 |
# File 'bin/ernie', line 13 def code_paths DEFAULT_ERLANG_CODEPATHS.map {|n| "-pz #{rel(n)}" }.join(" ") + " \\" end |
#logfile(name) ⇒ Object
Root level calls
215 216 217 |
# File 'lib/ernie.rb', line 215 def logfile(name) Ernie.logfile(name) end |
#loglevel(level) ⇒ Object
219 220 221 |
# File 'lib/ernie.rb', line 219 def loglevel(level) Ernie.loglevel(level) end |
#rel(path) ⇒ Object
9 10 11 |
# File 'bin/ernie', line 9 def rel(path) File.join(ERNIE_ROOT, path) end |
#version ⇒ Object
17 18 19 20 |
# File 'bin/ernie', line 17 def version yml = YAML.load(File.read(File.join(File.dirname(__FILE__), *%w[.. VERSION.yml]))) "#{yml[:major]}.#{yml[:minor]}.#{yml[:patch]}" end |