Skip to content

Commit

Permalink
Updated naming context
Browse files Browse the repository at this point in the history
  • Loading branch information
trenton-p committed Oct 31, 2023
1 parent 1fc1f9d commit 98252bf
Show file tree
Hide file tree
Showing 47 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ def build_web_app():

def build_logic():

return_dir = change_dir_with_return("./buisness-logic")
return_dir = change_dir_with_return("./business-logic")

cmd = [sys.executable, "build.py"]
proc = subprocess.run(cmd, stderr=subprocess.STDOUT, shell=False)
exit_on_failure(proc.returncode, "Buisness Logic build failed")
exit_on_failure(proc.returncode, "Business Logic build failed")

return_dir()

Expand All @@ -69,8 +69,8 @@ def main():
)
parser.add_argument("--infrastructure",
action="store_true", help="builds infrastructure")
parser.add_argument("--buisness_logic",
action="store_true", help="builds buisness logic")
parser.add_argument("--business_logic",
action="store_true", help="builds business logic")
args = parser.parse_args()

if len(sys.argv) == 1:
Expand All @@ -79,7 +79,7 @@ def main():
build_infrastructure()
# needs to be last to ensure the dependencies are built before the CDK deployment can build/run
else:
if args.buisness_logic:
if args.business_logic:
build_logic()
if args.infrastructure:
build_infrastructure()
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion infrastructure/src/app-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export interface InfrastructureStackProps extends cdk.StackProps {
export class InfrastructureStack extends cdk.Stack {
constructor(scope: Construct, id: string, props: InfrastructureStackProps) {
super(scope, id, props);
const codePath = "../../buisness-logic";
const codePath = "../../business-logic";

// ---- S3 Buckets ---- //

Expand Down
2 changes: 1 addition & 1 deletion infrastructure/src/constructs/lambda-construct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class LambdaConstruct extends Construct {
/* eslint-disable @typescript-eslint/no-unused-vars */
props = { ...defaultProps, ...props };

const codePath = "../../../buisness-logic";
const codePath = "../../../business-logic";

// ---- Functions ---- //
/* The following variables define the necessary resources for the `GluePartitionCreator` serverless
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/src/constructs/streaming-analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const inputSchema: kinesisanalytics.CfnApplication.InputSchemaProperty = {
/* eslint-disable @typescript-eslint/no-empty-interface */
export interface StreamingAnalyticsConstructProps extends cdk.StackProps {
/**
* Base Codepath for buisness logic folder
* Base Codepath for business logic folder
*/
baseCodePath: string;
gameEventsStream: kinesis.IStream;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"scripts": {
"start": "cd web-app && npm run start",
"build": "python3 build.py",
"build.logic": "python3 build.py --buisness_logic",
"build.logic": "python3 build.py --business_logic",
"build.infrastructure": "python3 build.py --infrastructure",
"deploy.bootstrap": "cd infrastructure && npm install && npm run bootstrap",
"deploy": "cd infrastructure && npm run cdk deploy -- -c stack_name=\"${STACK_NAME:-}\" --all --require-approval never",
Expand Down

0 comments on commit 98252bf

Please sign in to comment.