class CucumberPeel::Cli

Public Instance Methods

run() click to toggle source
# File lib/cucumber_peel/cli.rb, line 7
def run
  config = create_cucumber_configuration
  runtime = start_cucumber(config)
  puts "Cucumber runtime loaded. Enter steps to search for."

  while true
    print "> "
    step_name = gets.chomp
    break if step_name == "exit"
    puts find_cucumber_step(runtime, step_name)
  end
end