18 lines
330 B
Go
18 lines
330 B
Go
package cap
|
|
|
|
import (
|
|
"io/ioutil"
|
|
|
|
plugincore "github.com/hashicorp/vagrant-plugin-sdk/core"
|
|
)
|
|
|
|
func WriteHello(machine plugincore.Machine) (err error) {
|
|
d1 := []byte("hello\ngo\n")
|
|
ioutil.WriteFile("/tmp/dat1", d1, 0644)
|
|
|
|
machine.ConnectionInfo()
|
|
// TODO: write something to guest machine
|
|
// need a communicator
|
|
return
|
|
}
|