Sha256: d0ba5a802a66f450ddf8a286df417d26d487f768b7952c7a282abf515267d67b
Contents?: true
Size: 639 Bytes
Versions: 12
Compression:
Stored size: 639 Bytes
Contents
#!/usr/bin/env ruby $LOAD_PATH.unshift File.join( File.dirname(__FILE__) + "/../lib" ) require 'crusher' require 'eventmachine' require 'active_support/core_ext' config = Crusher::Configurator::Configuration.new('Crushfile') target_name = ARGV[0].to_sym scenario_name = ARGV[1].to_sym target = config.targets[target_name] scenario = config.scenarios[scenario_name] puts "Fatal Error: Unknown target '#{target_name}'" unless target puts "Fatal Error: Unknown scenario '#{scenario_name}'" unless scenario exit(1) unless target && scenario options = {} options[:log_file] = ARGV[2] Crusher::CrushSession.new(target, scenario, options)
Version data entries
12 entries across 12 versions & 1 rubygems