Sha256: e4c3291f6ae9a77f136d82f40870f892b849321bda0d4c182100df4ea55b2609

Contents?: true

Size: 518 Bytes

Versions: 1

Compression:

Stored size: 518 Bytes

Contents

module VagrantMutate
  module Provider
    class Provider
      attr_reader :name, :supported_input, :supported_output, :image_format, :image_name

      def self.create(name)
        case name
        when 'libvirt'
          require_relative 'libvirt'
          Libvirt.new
        when 'virtualbox'
          require_relative 'virtualbox'
          Virtualbox.new
        else
          raise Errors::ProviderNotSupported, :provider => name, :direction => 'input or output'
        end
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-mutate-0.1.2 lib/vagrant-mutate/provider/provider.rb