VagrantPluginRunner.

Install(string, Action<VagrantPluginInstallSettings>) Method

Summary

This installs a plugin with the given name or file path.
Assembly
Cake.Vagrant.dll
Namespace
Cake.Vagrant.Commands
Containing Type
VagrantPluginRunner

Syntax

public void Install(string name, Action<VagrantPluginInstallSettings> configure = null)

Examples

Vagrant.Plugin.Install("plugin", 
    s => s.CleanFirst()
            .FromSource("http://source")
            .SetEntryPoint("main.sh"));

Remarks

If the name is not a path to a file, then the plugin is installed from remote repositories, usually RubyGems.

Parameters

Name Type Description
name string Name or path of the plugin to install
configure Action<VagrantPluginInstallSettings> Optional settings to control the installation process

Return Value

Type Description
void