Skip to content
cktricky edited this page Jul 25, 2011 · 1 revision

MultiHosts Assist

To include this assists module in your module use the following line of code:

include WXf::WXfassists::Auxiliary::MultiHosts

Default Options

RURLS

This assist module is very simple in that it removes RURL as an option (if you've chosen to utilize an assist module that automatically includes RURL as an option) and replaces it with RURLS.

Additionally, the rurls method exposed by this assist module is an array. Each array is a line of the file the user has when they set the RURLS option.

Example:

show rurls
set RURLS host_list.txt

host_list.txt is a file placed under the rurls directory prior to starting the console. OR it can be a file that was placed under the rurls directory while the console was running and the user typed reload rurls.

Example of using the rurls method

rurls.each do |rurl|
  mech_req({
    'RURL' => rurl
  })
end
Clone this wiki locally