Top Level Namespace
Defined Under Namespace
Modules: Jeka
Constant Summary collapse
- ROOT_PATH =
File.(File.dirname(__FILE__))
- TOP_MSG =
"jeka v#{File.open(File.join(File.dirname(__FILE__), '..', 'VERSION'), "r").readlines.join}"
Instance Method Summary collapse
- #build(options) ⇒ Object
- #cmd(files, options) ⇒ Object
- #help ⇒ Object
- #run(options) ⇒ Object
- #test(options) ⇒ Object
Instance Method Details
#cmd(files, options) ⇒ Object
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'bin/jeka', line 41 def cmd(files, ) if not files.length == 1 puts "ERROR: invalid number of files..." return end if not Jeka::Console::add_algorithms(files[0]) puts "ERROR: No such file or directory..." return end case [:command] when :build build() when :run run() when :test test() end end |
#help ⇒ Object
75 76 77 |
# File 'bin/jeka', line 75 def help() puts "Usage: jeka run|build [options] file..." end |