Class: Datacraft::Cli
- Inherits:
-
Thor
- Object
- Thor
- Datacraft::Cli
- Defined in:
- lib/datacraft/cli.rb
Overview
command line interface
Instance Method Summary collapse
Instance Method Details
#build(filename) ⇒ Object
7 8 9 10 |
# File 'lib/datacraft/cli.rb', line 7 def build(filename) instruction = Instruction.from_file filename Datacraft.run instruction end |
#check(filename) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/datacraft/cli.rb', line 14 def check(filename) begin Instruction.from_file filename puts 'You are ready to go.' rescue InvalidInstruction => e puts e end end |