Module: Dapp::Build::Stage::Mod::Group
- Included in:
- InstallGroup::GAPostInstallPatch, InstallGroup::GAPostInstallPatchDependencies, InstallGroup::GAPreInstallPatch, InstallGroup::GAPreInstallPatchDependencies, InstallGroup::Install, SetupGroup::ChefCookbooks, SetupGroup::GAPostSetupPatch, SetupGroup::GAPostSetupPatchDependencies, SetupGroup::GAPreSetupPatch, SetupGroup::GAPreSetupPatchDependencies, SetupGroup::Setup
- Defined in:
- lib/dapp/build/stage/mod/group.rb
Overview
Group
Instance Method Summary collapse
- #group_name ⇒ Object
- #group_opened? ⇒ Boolean
- #group_should_be_opened? ⇒ Boolean
- #log_group_name ⇒ Object
- #log_image_build ⇒ Object
- #log_name_context ⇒ Object
- #prev_group_stage ⇒ Object
Instance Method Details
#group_name ⇒ Object
18 19 20 |
# File 'lib/dapp/build/stage/mod/group.rb', line 18 def group_name class_to_lowercase(self.class.name.split('::')[-2]) end |
#group_opened? ⇒ Boolean
26 27 28 29 |
# File 'lib/dapp/build/stage/mod/group.rb', line 26 def group_opened? return false if prev_group_stage.nil? prev_group_stage.group_opened? || prev_group_stage.image_should_be_build? end |
#group_should_be_opened? ⇒ Boolean
22 23 24 |
# File 'lib/dapp/build/stage/mod/group.rb', line 22 def group_should_be_opened? !group_opened? && image_should_be_build? end |
#log_group_name ⇒ Object
14 15 16 |
# File 'lib/dapp/build/stage/mod/group.rb', line 14 def log_group_name application.project.log_step(application.project.t(code: group_name, context: :group)) end |
#log_image_build ⇒ Object
8 9 10 11 12 |
# File 'lib/dapp/build/stage/mod/group.rb', line 8 def log_image_build return super if should_be_quiet? log_group_name if group_should_be_opened? application.project.with_log_indent { super } end |
#log_name_context ⇒ Object
35 36 37 |
# File 'lib/dapp/build/stage/mod/group.rb', line 35 def log_name_context [super, group_name].join('.') end |
#prev_group_stage ⇒ Object
31 32 33 |
# File 'lib/dapp/build/stage/mod/group.rb', line 31 def prev_group_stage prev_stage if prev_stage.respond_to?(:group_name) && prev_stage.group_name == group_name end |