public class VagrantProvisioner extends Object implements com.oracle.bedrock.Option.Collectable
Copyright (c) 2016. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
runAlways
Whether this
VagrantProvisioner is always run |
| Modifier | Constructor and Description |
|---|---|
protected |
VagrantProvisioner(String type,
String configuration)
Create a new
VagrantProvisioner of the specified type. |
| Modifier and Type | Method and Description |
|---|---|
static VagrantProvisioner |
custom(String type,
String configuraton)
Create an custom
VagrantProvisioner. |
boolean |
equals(Object o) |
static VagrantProvisioner |
file(String source,
String destination)
Create a file copy
VagrantProvisioner. |
Class<? extends com.oracle.bedrock.Option.Collector> |
getCollectorClass() |
int |
hashCode() |
static VagrantProvisioner |
inlineShell(String cmd)
Create an in-line shell
VagrantProvisioner. |
boolean |
isRunAlways()
Determine whether this
VagrantProvisioner should always run
when a VagrantPlatform is started. |
VagrantProvisioner |
runAlways()
Run this provisoner every time the Vagrant box is started.
|
VagrantProvisioner |
runOnce()
Only run this provisoner when the Vagrant box is first started.
|
void |
write(PrintWriter writer,
String prefix,
String padding)
Write the configuration of this
VagrantProvisioner to a PrintWriter. |
protected boolean runAlways
VagrantProvisioner is always runprotected VagrantProvisioner(String type, String configuration)
VagrantProvisioner of the specified type.type - the type of this VagrantProvisionerconfiguration - the configuration of the VagrantProvisionerpublic boolean isRunAlways()
VagrantProvisioner should always run
when a VagrantPlatform is started.public VagrantProvisioner runAlways()
VagrantProvisioner for fluent method chainingpublic VagrantProvisioner runOnce()
VagrantProvisioner for fluent method chainingpublic void write(PrintWriter writer, String prefix, String padding)
VagrantProvisioner to a PrintWriter.writer - the PrintWriterprefix - the prefix to write before each configurationpadding - the padding to write before each linepublic Class<? extends com.oracle.bedrock.Option.Collector> getCollectorClass()
getCollectorClass in interface com.oracle.bedrock.Option.Collectablepublic static VagrantProvisioner inlineShell(String cmd)
VagrantProvisioner.cmd - the shell command to executeVagrantProvisionerpublic static VagrantProvisioner file(String source, String destination)
VagrantProvisioner.source - the source file to copydestination - the destination to copy the file toVagrantProvisionerpublic static VagrantProvisioner custom(String type, String configuraton)
VagrantProvisioner.type - the Vagrant provisioner typeconfiguraton - the configuration to write for the provisionerVagrantProvisionerCopyright © 2017. All rights reserved.