#!/usr/bin/env ruby require 'cucumber-chef' # if we have bundler binstubs use that; otherwise attempt to detect knife = (Cucumber::Chef.locate(:file, "bin", "knife") rescue "/usr/bin/env knife") tag = Cucumber::Chef.tag("cc-knife") puts(tag) Cucumber::Chef.boot(tag) ui = ZTK::UI.new(:logger => Cucumber::Chef.logger) if (test_lab = Cucumber::Chef::TestLab.new(ui)) && test_lab.alive? test_lab.knife_cli([ARGV], :replace_current_process => true) else puts("No running cucumber-chef test labs to connect to!") exit(1) end