Class: Hako::Scripts::CodebuildTag
- Inherits:
-
Script
- Object
- Script
- Hako::Scripts::CodebuildTag
show all
- Defined in:
- lib/hako/scripts/codebuild_tag.rb
Defined Under Namespace
Classes: NoSuccessfulBuildError
Constant Summary
collapse
- TARGET_TAG =
'codebuild'
Instance Method Summary
collapse
Instance Method Details
#codebuild ⇒ Object
26
27
28
29
30
31
32
|
# File 'lib/hako/scripts/codebuild_tag.rb', line 26
def codebuild
@codebuild ||= begin
options = {}
options[:region] = @region if @region
Aws::CodeBuild::Client.new(options)
end
end
|
11
12
13
14
15
|
# File 'lib/hako/scripts/codebuild_tag.rb', line 11
def configure(options)
super
@region = options['region']
@project_name = options.fetch('project', @app.id)
end
|
#deploy_starting(containers) ⇒ Object
Also known as:
oneshot_starting
17
18
19
20
21
22
|
# File 'lib/hako/scripts/codebuild_tag.rb', line 17
def deploy_starting(containers)
app = containers.fetch('app')
if app.definition['tag'] == TARGET_TAG
rewrite_tag(app)
end
end
|