Sha256: 32cd6ae45b55375a1ff434f413338f2869a04331541c6fe80368ebe50e920b4c
Contents?: true
Size: 715 Bytes
Versions: 3
Compression:
Stored size: 715 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) 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cucumber-chef-2.1.0.rc.6 | bin/cc-knife |
cucumber-chef-2.1.0.rc.5 | bin/cc-knife |
cucumber-chef-2.1.0.rc.4 | bin/cc-knife |