This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rbvmomi' | |
| class KnifeVspherePlugin | |
| def data=(cplugin_data) | |
| @mac_address = cplugin_data | |
| end | |
| def reconfig_vm(target_vm) | |
| if (!@mac_address) | |
| abort ("MAC address not provided") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apply plugin: "scala" | |
| apply plugin: "eclipse" | |
| apply plugin: "maven" | |
| version = "1.0" | |
| group = "org.coursera" | |
| ext { | |
| scalaVersion = "2.10.1" | |
| } |