2014-01-17 01:18:54 +00:00
|
|
|
require "vagrant"
|
|
|
|
|
|
|
|
module VagrantPlugins
|
|
|
|
module GuestTinyCore
|
|
|
|
class Plugin < Vagrant.plugin("2")
|
|
|
|
name "TinyCore Linux guest."
|
|
|
|
description "TinyCore Linux guest support."
|
|
|
|
|
|
|
|
guest("tinycore", "linux") do
|
|
|
|
require File.expand_path("../guest", __FILE__)
|
|
|
|
Guest
|
|
|
|
end
|
|
|
|
|
|
|
|
guest_capability("tinycore", "configure_networks") do
|
|
|
|
require_relative "cap/configure_networks"
|
|
|
|
Cap::ConfigureNetworks
|
|
|
|
end
|
|
|
|
|
2015-04-21 18:48:34 +00:00
|
|
|
guest_capability("tinycore", "change_host_name") do
|
|
|
|
require_relative "cap/change_host_name"
|
|
|
|
Cap::ChangeHostName
|
|
|
|
end
|
|
|
|
|
2014-01-17 01:18:54 +00:00
|
|
|
guest_capability("tinycore", "halt") do
|
|
|
|
require_relative "cap/halt"
|
|
|
|
Cap::Halt
|
|
|
|
end
|
2014-03-13 00:31:49 +00:00
|
|
|
|
|
|
|
guest_capability("tinycore", "rsync_install") do
|
|
|
|
require_relative "cap/rsync"
|
|
|
|
Cap::RSync
|
|
|
|
end
|
2016-02-04 15:19:53 +00:00
|
|
|
|
2016-02-04 15:26:37 +00:00
|
|
|
guest_capability("tinycore", "mount_nfs_folder") do
|
2016-02-04 15:19:53 +00:00
|
|
|
require_relative "cap/mount_nfs"
|
|
|
|
Cap::MountNFS
|
|
|
|
end
|
2014-01-17 01:18:54 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|