Class: Kitchen::Command::Exec
Overview
Execute command on remote instance.
Instance Method Summary collapse
-
#call ⇒ Object
Invoke the command.
Methods inherited from Base
Methods included from Logging
#banner, #debug, #error, #fatal, #info, #warn
Constructor Details
This class inherits a constructor from Kitchen::Command::Base
Instance Method Details
#call ⇒ Object
Invoke the command.
27 28 29 30 31 32 33 34 |
# File 'lib/kitchen/command/exec.rb', line 27 def call results = parse_subcommand(args.first) results.each do |instance| "Execute command on #{instance.name}." instance.remote_exec([:command]) end end |