Maintained by aalmiray
Gradle plugin for managing Vagrant boxes.
| Website | https://github.com/bmuschko/gradle-vagrant-plugin |
|---|---|
| Author | bmuschko |
| Version | 0.5 |
buildscript {
repositories { jcenter() }
dependencies {
classpath 'org.gradle.api.plugins:gradle-vagrant-plugin:0.5'
}
}
apply plugin: 'vagrant'
vagrant {
boxDir = file('~/dev/my-vagrant-box')
}
import org.gradle.api.plugins.vagrant.tasks.Vagrant
import org.gradle.api.plugins.vagrant.tasks.VagrantSsh
task vagrantListsBoxes(type: Vagrant) {
description = 'Outputs a list of available Vagrant boxes.'
commands = ['box', 'list']
}
task vagrantEcho(type: VagrantSsh) {
description = 'Runs remote SSH command in Vagrant box.'
sshCommand = "echo 'hello'"
dependsOn vagrantUp
finalizedBy vagrantDestroy
}