Class: Datacraft::Cli

Inherits:
Thor
  • Object
show all
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



13
14
15
# File 'lib/datacraft/cli.rb', line 13

def check(filename)
  puts Instruction.check filename
end