Class: Expectacle::Thrower
- Inherits:
-
ThrowerBase
- Object
- ThrowerBase
- Expectacle::Thrower
- Defined in:
- lib/expectacle/thrower.rb
Overview
Thrower logic(command list operation)
Instance Attribute Summary
Attributes inherited from ThrowerBase
Instance Method Summary collapse
Methods inherited from ThrowerBase
#commands_dir, #hosts_dir, #initialize, #prompts_dir
Constructor Details
This class inherits a constructor from Expectacle::ThrowerBase
Instance Method Details
#preview_parameter(hosts, commands) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/expectacle/thrower.rb', line 16 def preview_parameter(hosts, commands) @commands = commands hosts.each do |each| @host_param = each preview_command_for_host end end |
#run_command_for_all_hosts(hosts, commands) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/expectacle/thrower.rb', line 8 def run_command_for_all_hosts(hosts, commands) @commands = commands hosts.each do |each| @host_param = each run_command_for_host end end |