From 8977e5122acdb41e5e04f9d32338baf27fda6f49 Mon Sep 17 00:00:00 2001 From: Alex Auvolat Date: Mon, 28 Nov 2022 12:24:07 +0100 Subject: [PATCH] rename things --- .gitignore | 4 ++-- {hello => exec2}/driver.go | 0 {hello => exec2}/handle.go | 0 {hello => exec2}/state.go | 0 go.mod | 3 +-- main.go | 5 ++--- 6 files changed, 5 insertions(+), 7 deletions(-) rename {hello => exec2}/driver.go (100%) rename {hello => exec2}/handle.go (100%) rename {hello => exec2}/state.go (100%) diff --git a/.gitignore b/.gitignore index dd66f8f..39a5816 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -nomad-skeleton-driver-plugin -hello-driver +nomad-driver-exec2 +exec2-driver diff --git a/hello/driver.go b/exec2/driver.go similarity index 100% rename from hello/driver.go rename to exec2/driver.go diff --git a/hello/handle.go b/exec2/handle.go similarity index 100% rename from hello/handle.go rename to exec2/handle.go diff --git a/hello/state.go b/exec2/state.go similarity index 100% rename from hello/state.go rename to exec2/state.go diff --git a/go.mod b/go.mod index 69e2869..2d4bcc5 100644 --- a/go.mod +++ b/go.mod @@ -1,5 +1,4 @@ -// TODO: update the module path below to match your own repository -module github.com/hashicorp/nomad-skeleton-driver-plugin +module github.com/Alexis211/nomad-driver-exec2 go 1.19 diff --git a/main.go b/main.go index 44781ae..7963a63 100644 --- a/main.go +++ b/main.go @@ -1,8 +1,7 @@ package main import ( - // TODO: update the path below to match your own repository - "github.com/hashicorp/nomad-skeleton-driver-plugin/hello" + exec2 "github.com/Alexis211/nomad-driver-exec2/exec2" "github.com/hashicorp/go-hclog" "github.com/hashicorp/nomad/plugins" @@ -15,5 +14,5 @@ func main() { // factory returns a new instance of a nomad driver plugin func factory(log hclog.Logger) interface{} { - return hello.NewPlugin(log) + return exec2.NewPlugin(log) }