Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
NxPKG committed Oct 14, 2023
1 parent 53262a7 commit b15e29f
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ brews:

commit_author:
name: shipyard
email: hello@shipyard.build
email: hello@shipyard.khulnasoft.com

commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
folder: Formula

homepage: "https://shipyard.build"
homepage: "https://shipyard.khulnasoft.com"
description: "A tool to manage Ephemeral Environments on the Shipyard platform"
license: "Apache2"

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,15 @@ save your API token in a local config. You're ready to start running commands.
Set your Shipyard API token as the value of the `SHIPYARD_API_TOKEN` environment variable.
Or set it as the value for the `api_token` config key.

You can get it by going to [your profile page](https://shipyard.build/profile).
You can get it by going to [your profile page](https://shipyard.khulnasoft.com/profile).

### Set a Shipyard token

```bash
shipyard set token
```

You can get in touch with us at [support@shipyard.build](mailto:support@shipyard.build) if you would like to enable API
You can get in touch with us at [support@shipyard.khulnasoft.com](mailto:support@shipyard.khulnasoft.com) if you would like to enable API
access for your org. If you have any other questions, feel free to join
our community [Slack](https://join.slack.com/t/shipyardcommunity/shared_invite/zt-x830cx39-BuiQKZwvhG7zGRTXAvojVQ).

Expand Down
2 changes: 1 addition & 1 deletion commands/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func login() error {
}()

display.Println("Opening the default web browser...")
backendURL := fmt.Sprintf("https://shipyard.build/api/me/user-token/cli?callbackUrl=http://%s", server.Addr)
backendURL := fmt.Sprintf("https://shipyard.khulnasoft.com/api/me/user-token/cli?callbackUrl=http://%s", server.Addr)
if err := browser.OpenURL(backendURL); err != nil {
return err
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/requests/uri/uri.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

func CreateResourceURI(action, resource, id, subresource string, params map[string]string) string {
baseURL := "https://shipyard.build/api/v1"
baseURL := "https://shipyard.khulnasoft.com/api/v1"
if value := os.Getenv("SHIPYARD_BUILD_URL"); value != "" {
baseURL = value
}
Expand Down
18 changes: 9 additions & 9 deletions pkg/requests/uri/uri_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,48 +21,48 @@ func TestCreateResourceURI(t *testing.T) {
{
name: "Get all environments",
action: "", resource: "environment", id: "", subresource: "", params: nil,
want: "https://shipyard.build/api/v1/environment",
want: "https://shipyard.khulnasoft.com/api/v1/environment",
},
{
name: "Get all environments in a specific org",
action: "", resource: "environment", id: "", subresource: "", params: map[string]string{"org": "myorg"},
want: "https://shipyard.build/api/v1/environment?org=myorg",
want: "https://shipyard.khulnasoft.com/api/v1/environment?org=myorg",
},
{
name: "Get all environments with filters applied",
action: "", resource: "environment", id: "", subresource: "",
params: map[string]string{"branch": "newfeature", "repo_name": "shipyard", "page_size": "9"},
want: "https://shipyard.build/api/v1/environment?branch=newfeature&page_size=9&repo_name=shipyard",
want: "https://shipyard.khulnasoft.com/api/v1/environment?branch=newfeature&page_size=9&repo_name=shipyard",
},
{
name: "Get a single environment",
action: "", resource: "environment", id: "123abc", subresource: "",
want: "https://shipyard.build/api/v1/environment/123abc",
want: "https://shipyard.khulnasoft.com/api/v1/environment/123abc",
},
{
name: "Get a single environment in a specific org",
action: "", resource: "environment", id: "123abc", subresource: "", params: map[string]string{"org": "myorg"},
want: "https://shipyard.build/api/v1/environment/123abc?org=myorg",
want: "https://shipyard.khulnasoft.com/api/v1/environment/123abc?org=myorg",
},
{
name: "Get a kubeconfig for a single environment",
action: "", resource: "environment", id: "123abc", subresource: "kubeconfig", params: nil,
want: "https://shipyard.build/api/v1/environment/123abc/kubeconfig",
want: "https://shipyard.khulnasoft.com/api/v1/environment/123abc/kubeconfig",
},
{
name: "Get a kubeconfig for a single environment in a specific org",
action: "", resource: "environment", id: "123abc", subresource: "kubeconfig", params: map[string]string{"org": "myorg"},
want: "https://shipyard.build/api/v1/environment/123abc/kubeconfig?org=myorg",
want: "https://shipyard.khulnasoft.com/api/v1/environment/123abc/kubeconfig?org=myorg",
},
{
name: "Stop a single environment",
action: "stop", resource: "environment", id: "123abc", subresource: "", params: nil,
want: "https://shipyard.build/api/v1/environment/123abc/stop",
want: "https://shipyard.khulnasoft.com/api/v1/environment/123abc/stop",
},
{
name: "Stop a single environment in a specific org",
action: "stop", resource: "environment", id: "123abc", subresource: "", params: map[string]string{"org": "myorg"},
want: "https://shipyard.build/api/v1/environment/123abc/stop?org=myorg",
want: "https://shipyard.khulnasoft.com/api/v1/environment/123abc/stop?org=myorg",
},
}

Expand Down
2 changes: 1 addition & 1 deletion src/swagger_client/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Configuration(six.with_metaclass(TypeWithDefault, object)):
def __init__(self):
"""Constructor"""
# Default Base url
self.host = "https://shipyard.build"
self.host = "https://shipyard.khulnasoft.com"
# Temp file folder for downloading files
self.temp_folder_path = None

Expand Down

0 comments on commit b15e29f

Please sign in to comment.