Skip to content

Commit

Permalink
updating docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Albrecht committed Jan 6, 2019
1 parent 9fd261a commit f1fb512
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 16 deletions.
4 changes: 2 additions & 2 deletions docs/Functions.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"class MyPipeline(Pipeline):\n",
" \n",
" def __init__(self):\n",
" super().__init__(name=\"defining-functions\")\n",
" super().__init__()\n",
" \n",
" @events.invoke\n",
" def lambda_func(self, event, context):\n",
Expand Down Expand Up @@ -140,7 +140,7 @@
"class MyPipeline(Pipeline):\n",
" \n",
" def __init__(self):\n",
" super().__init__(name=\"helper-function\")\n",
" super().__init__()\n",
" \n",
" def helper_function(self):\n",
" return \"Hello World!\"\n",
Expand Down
7 changes: 3 additions & 4 deletions docs/Pipeline.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"class SimplestPipeline(Pipeline):\n",
" \n",
" def __init__(self):\n",
" super().__init__(name=\"pipeline\")\n",
" super().__init__()\n",
" \n",
" @events.invoke\n",
" def lambda_func(self, event, context):\n",
Expand Down Expand Up @@ -78,8 +78,7 @@
"class NotSoSimplePipeline(Pipeline):\n",
" \n",
" def __init__(self):\n",
" super().__init__(name=\"pipeline\",\n",
" resources=[bucket, queue])\n",
" super().__init__(resources=[bucket, queue])\n",
" \n",
" @events.bucket_notification(bucket=bucket, event_type=\"s3:ObjectCreated:Put\", destination=queue)\n",
" def bucket_kickoff(self, event, context):\n",
Expand Down Expand Up @@ -299,7 +298,7 @@
"class MyPipeline(Pipeline):\n",
" \n",
" def __init__(self):\n",
" super().__init__(name=\"pipeline\")\n",
" super().__init__()\n",
" self.execution.runtime = \"python2.7\"\n",
" self.execution.region = \"us-west-2\"\n",
" self.execution.stage = \"prod\""
Expand Down
9 changes: 3 additions & 6 deletions docs/Resources.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,7 @@
"class MyPipeline(Pipeline):\n",
" \n",
" def __init__(self):\n",
" super().__init__(name=\"pipeline-name\",\n",
" resources=[my_topic, my_table])"
" super().__init__(resources=[my_topic, my_table])"
]
},
{
Expand All @@ -191,8 +190,7 @@
"class MyPipeline(Pipeline):\n",
" \n",
" def __init__(self):\n",
" super().__init__(name=\"pipeline-name\",\n",
" resources=[my_topic, my_table])\n",
" super().__init__(resources=[my_topic, my_table])\n",
" \n",
" @events.sns(resource=my_topic)\n",
" def sns_trigger(self, event, context):\n",
Expand All @@ -215,8 +213,7 @@
"class MyPipeline(Pipeline):\n",
" \n",
" def __init__(self):\n",
" super().__init__(name=\"pipeline-name\",\n",
" resources=[my_topic, my_table])\n",
" super().__init__(resources=[my_topic, my_table])\n",
" \n",
" @events.sns(resource=my_topic)\n",
" def sns_trigger(self, event, context):\n",
Expand Down
7 changes: 3 additions & 4 deletions docs/quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"class MyFirstPipeline(Pipeline):\n",
" \n",
" def __init__(self):\n",
" super().__init__(name=\"my-first-pipeline\")"
" super().__init__()"
]
},
{
Expand All @@ -69,7 +69,7 @@
"class MyFirstPipeline(Pipeline):\n",
" \n",
" def __init__(self):\n",
" super().__init__(name=\"my-first-pipeline\")\n",
" super().__init__()\n",
" \n",
" @events.http(method=\"get\", path=\"helloworld\", cors=\"true\")\n",
" def hello_world(self, event, context):\n",
Expand Down Expand Up @@ -116,8 +116,7 @@
"class MyFirstPipeline(Pipeline):\n",
" \n",
" def __init__(self):\n",
" super().__init__(name=\"my-first-pipeline\",\n",
" resources=[table])\n",
" super().__init__(resources=[table])\n",
" \n",
" @events.http(method=\"get\", path=\"helloworld/{message}\", cors=\"true\")\n",
" def hello_world(self, event, context):\n",
Expand Down

0 comments on commit f1fb512

Please sign in to comment.