class Datacraft::Cli
command line interface
Public Instance Methods
build(filename)
click to toggle source
# File lib/datacraft/cli.rb, line 7 def build(filename) Datacraft.run check(filename) end
check(filename)
click to toggle source
# File lib/datacraft/cli.rb, line 13 def check(filename) begin script = IO.read(filename) instruction = Datacraft.parse script puts 'You are ready to go.' instruction rescue InvalidInstruction => e puts e end end