Class: Doem::Cli
- Inherits:
-
Object
- Object
- Doem::Cli
- Defined in:
- lib/doem/cli.rb
Overview
command line interface
Class Method Summary collapse
Class Method Details
.run(args) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/doem/cli.rb', line 6 def self.run(args) unless args.size == 1 puts 'Syntax: brick your-script.rb' exit(-1) end filename = args[0] instruction = Instruction.from_file filename Doem.run instruction end |