class Vagrant::Plugin::Remote::Command
Attributes
client[RW]
Add an attribute accesor for the client when applied to the Command
class
Public Class Methods
new(argv, env, **kwargs)
click to toggle source
# File lib/vagrant/plugin/remote/command.rb, line 9 def initialize(argv, env, **kwargs) @logger = Log4r::Logger.new("vagrant::remote::command") @logger.debug("initializing command with remote backend") @argv = argv @env = env @client = kwargs.delete(:client) if @client.nil? raise ArgumentError, "Remote client is required for `#{self.class.name}`" end end
Public Instance Methods
execute()
click to toggle source
# File lib/vagrant/plugin/remote/command.rb, line 21 def execute client.execute(@argv) end