Sha256: c846ccb1921460d9e1afc0a955997b0b7f0bd7adec7ff0382540db3dc41c34ae
Contents?: true
Size: 719 Bytes
Versions: 4
Compression:
Stored size: 719 Bytes
Contents
module Vagrant module Plugin module Remote class Command < V2::Command # Add an attribute accesor for the client # when applied to the Command class attr_accessor :client 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 def execute client.execute(@argv) end end end end end
Version data entries
4 entries across 4 versions & 2 rubygems