Sha256: 3efa023c825213f68c786c812d7f4ebe537a24c82e72b9e26d7a82905f5ba467
Contents?: true
Size: 886 Bytes
Versions: 6
Compression:
Stored size: 886 Bytes
Contents
module VagrantPlugins module Invade module Generator module MachinePart class Provider attr_accessor :machine_name, :type, :provider_data def initialize(machine_name, type, provider_data) @machine_name = machine_name @type = type @provider_data = provider_data end def generate case @type when 'virtualbox' provider = Builder::Provider::VirtualBox.new(@machine_name, @provider_data) when 'vmware' provider = Builder::Provider::VMware.new(@machine_name, @provider_data) else raise StandardError, "Provider unknown or not set. Please check the provider configuration." end provider.build provider.result end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems