Sha256: 754267ca26a1d4884ea3ce9ff05ba7e37edb4dc097b67f23416f1b9a5ba95979

Contents?: true

Size: 1.66 KB

Versions: 13

Compression:

Stored size: 1.66 KB

Contents

require 'vagrant'

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

      guest_capability(:alpine, :smb_install) do
        require_relative 'cap/smb'
        Cap::SMB
      end

      def self.check_community_plugin
        plugins = Vagrant::Plugin::Manager.instance.installed_plugins
        if plugins.keys.include?("vagrant-alpine")
          $stderr.puts <<-EOF
WARNING: Vagrant has detected the `vagrant-alpine` plugin. This plugin's
functionality has been merged into the main Vagrant project and should be
considered deprecated. To uninstall the plugin, run the command shown below:

  vagrant plugin uninstall vagrant-alpine

EOF
        end
      end

      self.check_community_plugin
    end
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
vagrant-unbundled-2.3.6.0 plugins/guests/alpine/plugin.rb
tamtam-vagrant-reload-1.2.1 vendor/cache/vagrant-2092df529ae7/plugins/guests/alpine/plugin.rb
vagrant-unbundled-2.3.3.0 plugins/guests/alpine/plugin.rb
vagrant-unbundled-2.3.2.0 plugins/guests/alpine/plugin.rb
vagrant-unbundled-2.2.19.0 plugins/guests/alpine/plugin.rb
vagrant-unbundled-2.2.18.0 plugins/guests/alpine/plugin.rb
vagrant-unbundled-2.2.16.0 plugins/guests/alpine/plugin.rb
vagrant-unbundled-2.2.14.0 plugins/guests/alpine/plugin.rb
vagrant-aws-mkubenka-0.7.2.pre.24 vendor/bundle/ruby/2.7.0/bundler/gems/vagrant-22795b161bf6/plugins/guests/alpine/plugin.rb
vagrant-unbundled-2.2.10.0 plugins/guests/alpine/plugin.rb
vagrant-unbundled-2.2.9.0 plugins/guests/alpine/plugin.rb
vagrant-unbundled-2.2.8.0 plugins/guests/alpine/plugin.rb
vagrant-unbundled-2.2.7.0 plugins/guests/alpine/plugin.rb