Sha256: a3aefc2a99b6ed3a79948a1733e88563525839530cb170bdbb7d3bda37d2ae70
Contents?: true
Size: 1023 Bytes
Versions: 4
Compression:
Stored size: 1023 Bytes
Contents
module Veewee module Builder module Vmfusion module BuilderHelper def validate_vmfusion(box_name,options) require 'cucumber' require 'cucumber/rspec/disable_option_parser' require 'cucumber/cli/main' ENV['veewee_user']=options[:user] feature_path=File.join(File.dirname(__FILE__),"..","..","..","..","..","validation","vagrant.feature") features=Array.new features[0]=feature_path features << "-t" features << "@vmfusion" begin # The dup is to keep ARGV intact, so that tools like ruby-debug can respawn. failure = Cucumber::Cli::Main.execute(features.dup) Kernel.exit(failure ? 1 : 0) rescue SystemExit => e Kernel.exit(e.status) rescue Exception => e env.ui.error("#{e.message} (#{e.class})") env.ui.error(e.backtrace.join("\n")) Kernel.exit(1) end end end #Module end #Module end #Module end #Module
Version data entries
4 entries across 4 versions & 1 rubygems