Class: DTK::Client::Operation::Module::Install::DependentModules::ComponentModule
Constant Summary
collapse
- BaseRoute =
"modules"
MODULE_LOCK, OPERATIONS
TYPES
Class Method Summary
collapse
Instance Method Summary
collapse
#method_missing, #respond_to?
Methods included from Auxiliary
#hash_to_yaml, #snake_form, #snake_to_camel_case, #yaml_to_hash
Class Method Details
.install_or_pull?(module_ref, prompt_helper, print_helper) ⇒ Boolean
31
32
33
|
# File 'lib/client/operation/module/install/dependent_modules/component_module.rb', line 31
def self.install_or_pull?(module_ref, prompt_helper, print_helper)
new(module_ref, prompt_helper, print_helper).install_or_pull?
end
|
.install_or_pull_new?(module_ref, prompt_helper, print_helper) ⇒ Boolean
35
36
37
|
# File 'lib/client/operation/module/install/dependent_modules/component_module.rb', line 35
def self.install_or_pull_new?(module_ref, prompt_helper, print_helper)
new(module_ref, prompt_helper, print_helper).install_or_pull_new?
end
|
Instance Method Details
#install_or_pull? ⇒ Boolean
39
40
41
42
43
44
45
46
47
48
49
|
# File 'lib/client/operation/module/install/dependent_modules/component_module.rb', line 39
def install_or_pull?
if @module_ref.module_installed?(self)
if @module_ref.is_master_version?
pull_module_update?
else
@print_helper.print_using_installed_dependent_module
end
else
install_module
end
end
|
#install_or_pull_new? ⇒ Boolean
51
52
53
54
55
56
57
58
59
60
61
|
# File 'lib/client/operation/module/install/dependent_modules/component_module.rb', line 51
def install_or_pull_new?
if @module_ref.module_installed?(self)
if @module_ref.is_master_version?
pull_module_update_new?
else
@print_helper.print_using_installed_dependent_module
end
else
install_module
end
end
|
#query_if_component_module_is_installed? ⇒ Boolean
63
64
65
|
# File 'lib/client/operation/module/install/dependent_modules/component_module.rb', line 63
def query_if_component_module_is_installed?
module_version_exists?(@module_ref)
end
|