lib/pipedream/dsl/pipeline/codebuild.rb in pipedream-0.4.0 vs lib/pipedream/dsl/pipeline/codebuild.rb in pipedream-0.4.1

- old
+ new

@@ -16,11 +16,10 @@ } actions = projects.map do |item| if item.is_a?(String) name = item.underscore.camelize - project_name = adjusted_project_name(item) # add prefix and suffix default.deep_merge( name: name, configuration: { project_name: project_name }, ) else # Hash @@ -37,21 +36,8 @@ item.reverse_merge(default) end end action(*actions) - end - - def codebuild_prefix(v) - @codebuild_prefix = v - end - - def codebuild_suffix(v) - @codebuild_suffix = v - end - - private - def adjusted_project_name(name) - [@codebuild_prefix, name, @codebuild_suffix].compact.join end end end