Add missed files

bug/bundler_fix
Jon Hart 2014-08-13 15:25:41 -07:00
parent 2f45d2c72e
commit 0bb9214753
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,10 @@
When /^targets are loaded$/ do
config_file = File.expand_path('features/support/targets.yml')
fail "Target config file #{config_file} does not exist" unless File.exists?(config_file)
@target_config = YAML.load_file(config_file)
end
When /^(RHOSTS?) (?:are|is) (\S+)$/ do |type, target_type|
fail "No target type #{target_type}" unless @target_config.key?(target_type)
step "I type \"set #{type} #{@target_config[target_type]}\""
end

View File

@ -0,0 +1,2 @@
WINDOWS: spider-wxp.vuln.lax.rapid7.com
LINUX: spider-ubuntu.vuln.lax.rapid7.com