lib/pipedream/dsl/pipeline/codebuild.rb in pipedream-0.4.2 vs lib/pipedream/dsl/pipeline/codebuild.rb in pipedream-0.4.3
- old
+ new
@@ -21,14 +21,13 @@
default.deep_merge(
name: name,
configuration: { project_name: name },
)
else # Hash
- # With the hash, the user needs to set: name and configuration.project_name
-
- # Handy shorthands
- # The project name will allow this syntax
+ # With the hash notation, user needs to set: name and project_name
+ #
# codebuild(name: "action-name", project_name: "codebuild-project-names")
+ #
project_name = item.delete(:project_name)
if project_name
item[:configuration] = { project_name: project_name }
end