Sha256: 58026bf148fa8e76ed23cd8c5a7036a79d10d2bcac8e82c0a609d2f41eb9e119
Contents?: true
Size: 712 Bytes
Versions: 8
Compression:
Stored size: 712 Bytes
Contents
#!/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? knife_rb = Cucumber::Chef.knife_rb if File.exists?(knife_rb) test_lab.knife_cli([ARGV], :replace_current_process => true) else puts("Could not find your Cucumber-Chef 'knife.rb'. Did you setup your test lab?") exit(2) end else puts("No running cucumber-chef test labs to connect to!") exit(1) end
Version data entries
8 entries across 8 versions & 1 rubygems