Sha256: 282745869106fe3d4ed51c88fe152659b9b0822be3eb94241688d5981a2233d3

Contents?: true

Size: 1.27 KB

Versions: 4

Compression:

Stored size: 1.27 KB

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 Plugin < Vagrant.plugin('2')
      name 'Alpine guest'
      description 'Alpine Linux guest support.'

      guest('alpine', 'linux') do
        require File.expand_path('../guest', __FILE__)
        Guest
      end

      guest_capability('alpine', 'configure_networks') do
        require_relative 'cap/configure_networks'
        Cap::ConfigureNetworks
      end

      guest_capability('alpine', 'halt') do
        require_relative 'cap/halt'
        Cap::Halt
      end

      guest_capability('alpine', 'change_host_name') do
        require_relative 'cap/change_host_name'
        Cap::ChangeHostName
      end

      guest_capability('alpine', 'nfs_client_install') do
        require_relative 'cap/nfs_client'
        Cap::NFSClient
      end

      guest_capability('alpine', 'rsync_installed') do
        require_relative 'cap/rsync'
        Cap::RSync
      end

      guest_capability('alpine', 'rsync_install') do
        require_relative 'cap/rsync'
        Cap::RSync
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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