Sha256: 9d6f5c5f7ae99fbf5ff80aafac35ee652d356f187f3d91470c2ace4532db26d4

Contents?: true

Size: 435 Bytes

Versions: 5

Compression:

Stored size: 435 Bytes

Contents

begin
  require 'vagrant'
rescue LoadError
  raise 'The Vagrant Alpine Linux Guest plugin must be run within Vagrant.'
end

if Vagrant::VERSION < '1.7.0'
  fail 'The vagrant-alpine plugin is only compatible with Vagrant 1.7+'
end

module VagrantPlugins
  module GuestAlpine
    class Guest < Vagrant.plugin('2', :guest)
      def detect?(machine)
        machine.communicate.test('cat /etc/alpine-release')
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
vagrant-alpine-0.4.0 lib/vagrant-alpine/guest.rb
vagrant-alpine-0.3.0 lib/vagrant-alpine/guest.rb
vagrant-alpine-0.2.0 lib/vagrant-alpine/guest.rb
vagrant-alpine-0.1.3 lib/vagrant-alpine/guest.rb
vagrant-alpine-0.1.1 lib/vagrant-alpine/guest.rb