Skip to content

Commit

Permalink
Update references from "dagu" to "blackdagger"
Browse files Browse the repository at this point in the history
  • Loading branch information
ErdemOzgen committed Mar 11, 2024
1 parent 748e782 commit 8d00665
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM --platform=$BUILDPLATFORM ubuntu:22.04
ARG TARGETARCH
ARG VERSION=1.0.1
ARG RELEASES_URL="https://github.com/ErdemOzgen/blackdagger/releases"
ARG TARGET_FILE="dagu_${VERSION}_linux_${TARGETARCH}.tar.gz"
ARG TARGET_FILE="blackdagger_${VERSION}_linux_${TARGETARCH}.tar.gz"

ARG USER="blackdagger"
ARG USER_UID=1000
Expand Down
2 changes: 1 addition & 1 deletion cmd/scheduler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func TestSchedulerCommand(t *testing.T) {
go func() {
testRunCommand(t, createSchedulerCommand(), cmdTest{
args: []string{"scheduler"},
expectedOut: []string{"starting dagu scheduler"},
expectedOut: []string{"starting blackdagger scheduler"},
})
}()

Expand Down
2 changes: 1 addition & 1 deletion cmd/start_all.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
func startAllCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "start-all",
Short: "Launches both the Dagu web UI server and the scheduler process.",
Short: "Launches both the Blackdagger web UI server and the scheduler process.",
Long: `blackdagger start-all [--dags=<DAGs dir>] [--host=<host>] [--port=<port>]`,
PreRun: func(cmd *cobra.Command, args []string) {
_ = viper.BindPFlag("port", cmd.Flags().Lookup("port"))
Expand Down
2 changes: 1 addition & 1 deletion internal/dag/builder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ schedule:

func TestGeneratingSockAddr(t *testing.T) {
d := &DAG{Location: "testdata/testDag.yml"}
require.Regexp(t, `^/tmp/@dagu-testDag-[0-9a-f]+\.sock$`, d.SockAddr())
require.Regexp(t, `^/tmp/@blackdagger-testDag-[0-9a-f]+\.sock$`, d.SockAddr())
}

func TestOverwriteGlobalConfig(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/dag/dag.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (d *DAG) SockAddr() string {
h := md5.New()
h.Write([]byte(s))
bs := h.Sum(nil)
return path.Join("/tmp", fmt.Sprintf("@dagu-%s-%x.sock", name, bs))
return path.Join("/tmp", fmt.Sprintf("@blackdagger-%s-%x.sock", name, bs))
}

func (d *DAG) Clone() *DAG {
Expand Down
2 changes: 1 addition & 1 deletion internal/mailer/mailer.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type Config struct {

var (
replacer = strings.NewReplacer("\r\n", "", "\r", "", "\n", "", "%0a", "", "%0d", "")
boundary = "==simple-boundary-dagu-mailer"
boundary = "==simple-boundary-blackdagger-mailer"
)

// SendMail sends an email.
Expand Down
2 changes: 1 addition & 1 deletion internal/scheduler/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ func (n *Node) setup(logDir string, requestId string) error {

func (n *Node) setupScript() (err error) {
if n.Script != "" {
n.scriptFile, _ = os.CreateTemp(n.Dir, "dagu_script-")
n.scriptFile, _ = os.CreateTemp(n.Dir, "blackdagger_script-")
if _, err = n.scriptFile.WriteString(n.Script); err != nil {
return
}
Expand Down

0 comments on commit 8d00665

Please sign in to comment.