Class: Codebuild::Deploy

Inherits:
Stack
  • Object
show all
Defined in:
lib/codebuild/deploy.rb

Instance Method Summary collapse

Methods inherited from Stack

#initialize

Methods included from AwsServices

#cfn, #codebuild

Methods included from AwsServices::Helpers

#are_you_sure?, #inferred_project_name, #inferred_stack_name, #project_name_convention, #stack_exists?

Constructor Details

This class inherits a constructor from Codebuild::Stack

Instance Method Details

#runObject



3
4
5
6
7
8
9
# File 'lib/codebuild/deploy.rb', line 3

def run
  if stack_exists?(@stack_name)
    Update.new(@options).run
  else
    Create.new(@options).run
  end
end