lib/codebuild/delete.rb in codebuild-0.2.0 vs lib/codebuild/delete.rb in codebuild-0.3.0
- old
+ new
@@ -2,10 +2,11 @@
class Delete
include AwsServices
def initialize(options)
@options = options
- @stack_name = options[:stack_name] || inferred_stack_name
+ @project_name = options[:project_name] || inferred_project_name
+ @stack_name = options[:stack_name] || inferred_stack_name(@project_name)
end
def run
message = "Deleted #{@stack_name} stack."
if @options[:noop]