Class: Jets::Cfn::Resource::Codebuild::Fleet
- Inherits:
-
Base
- Object
- Base
- Jets::Cfn::Resource::Codebuild::Fleet
show all
- Defined in:
- lib/jets/cfn/resource/codebuild/fleet.rb
Instance Method Summary
collapse
Methods inherited from Base
#attributes, #config, #logical_id, #normalize_tags, #parameters, #properties, #replacements, #replacer, #standarize, #template, truncate_id, #type
#camelize
#log
Instance Method Details
#base_capacity ⇒ Object
22
23
24
|
# File 'lib/jets/cfn/resource/codebuild/fleet.rb', line 22
def base_capacity
Jets.bootstrap.config.codebuild.fleet.base_capacity
end
|
#compute_type ⇒ Object
26
27
28
|
# File 'lib/jets/cfn/resource/codebuild/fleet.rb', line 26
def compute_type
codebuild_properties[:Environment][:ComputeType]
end
|
#definition ⇒ Object
3
4
5
6
7
8
9
10
|
# File 'lib/jets/cfn/resource/codebuild/fleet.rb', line 3
def definition
{
CodebuildFleet: {
Type: "AWS::CodeBuild::Fleet",
Properties: props
}
}
end
|
#environment_type ⇒ Object
30
31
32
|
# File 'lib/jets/cfn/resource/codebuild/fleet.rb', line 30
def environment_type
codebuild_properties[:Environment][:Type]
end
|
#outputs ⇒ Object
34
35
36
37
38
|
# File 'lib/jets/cfn/resource/codebuild/fleet.rb', line 34
def outputs
{
"CodebuildFleet" => "!Ref CodebuildFleet"
}
end
|
#props ⇒ Object
12
13
14
15
16
17
18
19
20
|
# File 'lib/jets/cfn/resource/codebuild/fleet.rb', line 12
def props
{
BaseCapacity: base_capacity, ComputeType: compute_type, EnvironmentType: environment_type }
end
|