Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove all web references from cdep #265

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions cmd/cdep/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,6 @@ Or with some flags
- `--prod`: work on prod, where `nonprod` is the default
- `--branch {name}` (`-b`): define a branch to use, where `master` is the default

### update-web

A CLI tool to deploy web applications on a specific system/environment.

`cdep update-web {type} {env|all} {...apps} <flags>`

For example:

- `cdep uw cf all website`
- `cdep uw cf all website -b new-ppc-landing`
- `cdep uw cf prod website --prod`

Flags are:

- `--prod`: work on the prod system, where `nonprod` is the default
- `--branch {name}` (`-b`): define a branch to use, where `master` is the default

### update-default

Specifically for fast forwarding the default commit on an environment, or all of them.
Expand Down
1 change: 0 additions & 1 deletion cmd/cdep/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
func main() {
rootCmd.AddCommand(cmd.VersionCmd)
rootCmd.AddCommand(cmd.UpdateCmd)
rootCmd.AddCommand(cmd.UpdateWebCmd)
rootCmd.AddCommand(cmd.UpdateDefaultCmd)

if err := rootCmd.Execute(); err != nil {
Expand Down
237 changes: 0 additions & 237 deletions tools/cdep/app/update_web.go

This file was deleted.

3 changes: 0 additions & 3 deletions tools/cdep/cdep.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
const DefaultBranch = "master"

var ErrorCodeMapping = map[string]string{
"config_not_on_master": "Your config repo is not on master, please swap your HEAD back to master.",

Check failure on line 9 in tools/cdep/cdep.go

View workflow job for this annotation

GitHub Actions / GolangCI Linter

[GolangCI Linter] tools/cdep/cdep.go#L9

File is not `goimports`-ed (goimports)
Raw output
tools/cdep/cdep.go:9: File is not `goimports`-ed (goimports)
	"config_not_on_master":      "Your config repo is not on master, please swap your HEAD back to master.",
	"frozen_without_commit":     "We found a resource where the config is locked, but no commit is specified.",
	"frozen":                    "The resource you're trying to update is currently frozen.",
	"nothing_changed":           "Running this tool has resulted in no change.",
	"unknown_environment":       "You've provided an environment that does not exist in the provided system.",
	"unknown_system":            "You've provided a system that does not exist.",
	"unknown_type":              "You're trying to update something this tool cannot handle.",
	"working_copy_dirty":        "Your config repo working copy is dirty, please clean it up and try again.",
"frozen_without_commit": "We found a resource where the config is locked, but no commit is specified.",
"frozen": "The resource you're trying to update is currently frozen.",
"nothing_changed": "Running this tool has resulted in no change.",
Expand All @@ -14,9 +14,6 @@
"unknown_system": "You've provided a system that does not exist.",
"unknown_type": "You're trying to update something this tool cannot handle.",
"working_copy_dirty": "Your config repo working copy is dirty, please clean it up and try again.",
"too_many_apps": "You can only specify one application for web updates",
"web_deployment_not_found": "The commit hash discovered has not been pushed to s3 yet",
"terraform_token_not_found": "No Terraform token found. Please generate one on Terraform (https://app.terraform.io/app/settings/tokens) and put it into the environment variable \"CUVVA_TERRAFORM_TOKEN\".",
}

var OverruleChecks = map[string]string{
Expand Down
118 changes: 0 additions & 118 deletions tools/cdep/commands/update_web.go

This file was deleted.

Loading
Loading