diff options
Diffstat (limited to 'magefile.go')
| -rw-r--r-- | magefile.go | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/magefile.go b/magefile.go new file mode 100644 index 00000000..b092d74c --- /dev/null +++ b/magefile.go @@ -0,0 +1,30 @@ +//go:build mage +// +build mage + +package main + +import ( + "context" + + "github.com/magefile/mage/mg" + "github.com/magefile/mage/sh" +) + +// Default target to run when none is specified +// If not set, running mage will list available targets +var Default = Run + +// Run the Identity Provider +func RunIdp() error { + return sh.RunV("ruby", "./bin/idp") +} + +// Run the Service Provider +func RunSp() error { + return sh.RunV("ruby", "./bin/sp") +} + +// Run All the servers +func Run(ctx context.Context) { + mg.CtxDeps(ctx, RunIdp, RunSp) +} |
