Sha256: 23158d7df40303a06fb93c54e159807873aa7b5b6e3d7a3371f9688b54b2e21b
Contents?: true
Size: 842 Bytes
Versions: 1
Compression:
Stored size: 842 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") message = "cc-knife v#{Cucumber::Chef::VERSION}" puts(message) Cucumber::Chef.logger.info { message } Cucumber::Chef::Config.load if (test_lab = Cucumber::Chef::TestLab.new) && test_lab.alive? knife_rb = Cucumber::Chef.knife_rb if File.exists?(knife_rb) command = [knife, ARGV, "--server-url http://#{test_lab.ip}:4000", "--config #{knife_rb}", "2>&1"].flatten.compact.join(" ") puts(command) puts(%x(#{command})) exit($?.to_i) else puts("Could not find your Cucumber-Chef 'knife.rb'. Did you setup your test lab?") exit(255) end else puts("No running cucumber-chef test labs to connect to!") exit(1) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cucumber-chef-2.1.0.rc.3 | bin/cc-knife |