Class: Buildizer::Builder::Patch
- Inherits:
-
Base
- Object
- Base
- Buildizer::Builder::Patch
show all
- Defined in:
- lib/buildizer/builder/patch.rb
Instance Attribute Summary
Attributes inherited from Base
#docker, #packager, #work_path
Instance Method Summary
collapse
Methods inherited from Base
#_required_params!, #build, #build_jobs, #build_target, #deploy, #deploy_target, #initialize, #merge_params, #new_target, #prepare, #prepare_package_source_instructions, #prepare_target_image, #targets, #verify
Instance Method Details
#build_dep(target) ⇒ Object
35
36
37
|
# File 'lib/buildizer/builder/patch.rb', line 35
def build_dep(target)
target.image.patch_build_dep(self, target)
end
|
#build_instructions(target) ⇒ Object
31
32
33
|
# File 'lib/buildizer/builder/patch.rb', line 31
def build_instructions(target)
target.image.patch_build_instructions(self, target)
end
|
#build_type ⇒ Object
4
5
6
|
# File 'lib/buildizer/builder/patch.rb', line 4
def build_type
'patch'
end
|
#check_params!(params) ⇒ Object
26
27
28
29
|
# File 'lib/buildizer/builder/patch.rb', line 26
def check_params!(params)
super
_required_params! :patch_version, params
end
|
#do_merge_params(into, params) ⇒ Object
19
20
21
22
23
24
|
# File 'lib/buildizer/builder/patch.rb', line 19
def do_merge_params(into, params)
super.tap do |res|
res[:patch] = (into[:patch] + Array(params['patch'])).uniq
res[:patch_version] = into[:patch_version] || params['patch_version']
end
end
|
#initial_target_params ⇒ Object
12
13
14
15
16
17
|
# File 'lib/buildizer/builder/patch.rb', line 12
def initial_target_params
super.tap do |params|
params[:patch] = Array(packager.buildizer_conf['patch'])
params[:patch_version] = packager.buildizer_conf['patch_version']
end
end
|
#target_klass ⇒ Object
8
9
10
|
# File 'lib/buildizer/builder/patch.rb', line 8
def target_klass
Target::Patch
end
|