Skip to content

Commit

Permalink
Update error returns
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-cross committed Nov 10, 2022
1 parent 28ee3ef commit 8317cfb
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
5 changes: 3 additions & 2 deletions cmd/meroxa/turbine/ruby/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ package turbinerb

import (
"context"
"fmt"
)

func (t *turbineRbCLI) Build(ctx context.Context, appName string, platform bool) (string, error) {
return "", nil
return "", fmt.Errorf("command not implemented")
}

func (t *turbineRbCLI) CleanUpTempBuildLocation(ctx context.Context) error {
return nil
return fmt.Errorf("not implemented")
}

func (t *turbineRbCLI) CleanUpBinaries(ctx context.Context, appName string) {
Expand Down
7 changes: 3 additions & 4 deletions cmd/meroxa/turbine/ruby/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,25 @@ package turbinerb

import (
"context"
"fmt"

utils "github.com/meroxa/cli/cmd/meroxa/turbine"
)

func (t *turbineRbCLI) NeedsToBuild(ctx context.Context, appName string) (bool, error) {

return false, nil
}

func (t *turbineRbCLI) Deploy(ctx context.Context, imageName, appName, gitSha, specVersion, accountUUID string) (string, error) {
var (
deploymentSpec string
err error
)
return deploymentSpec, err
return deploymentSpec, fmt.Errorf("command not implemented")
}

func (t *turbineRbCLI) GetResources(ctx context.Context, appName string) ([]utils.ApplicationResource, error) {
var resources []utils.ApplicationResource
return resources, nil
return resources, fmt.Errorf("not implemented")
}

func (t *turbineRbCLI) GetGitSha(ctx context.Context) (string, error) {
Expand Down
7 changes: 3 additions & 4 deletions cmd/meroxa/turbine/ruby/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@ package turbinerb

import (
"context"

utils "github.com/meroxa/cli/cmd/meroxa/turbine"
"fmt"
)

func (t *turbineRbCLI) Init(ctx context.Context, name string) error {
return nil
return fmt.Errorf("command unavailable")
}

func (t *turbineRbCLI) GitInit(ctx context.Context, name string) error {
return utils.GitInit(ctx, name)
return fmt.Errorf("command unavailable")
}
3 changes: 2 additions & 1 deletion cmd/meroxa/turbine/ruby/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ package turbinerb

import (
"context"
"fmt"
)

const GrpcServerPort = 50500

func (t *turbineRbCLI) Run(ctx context.Context) (err error) {
// Run turbine-core gRPC server
return err
return fmt.Errorf("command not implemented")
}
5 changes: 3 additions & 2 deletions cmd/meroxa/turbine/ruby/upgrade.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package turbinerb

// Upgrade fetches the latest Meroxa dependencies.
import "fmt"

func (t *turbineRbCLI) Upgrade(vendor bool) error {
return nil
return fmt.Errorf("command unavailable")
}

0 comments on commit 8317cfb

Please sign in to comment.