109
110
111
112
113
114
115
116
117
118
119
120
121
|
# File 'lib/big_keeper/service/module_service.rb', line 109
def add(path, user, module_name, name, type)
home_branch_name = "#{GitflowType.name(type)}/#{name}"
Logger.highlight("Add branch '#{home_branch_name}' for module '#{module_name}'...")
verify_module(path, user, module_name, home_branch_name, type)
DepService.dep_operator(path, user).update_module_config(module_name, ModuleOperateType::ADD)
module_full_path = BigkeeperParser.module_full_path(path, user, module_name)
GitService.new.verify_push(module_full_path, "init #{GitflowType.name(type)} #{name}", home_branch_name, module_name)
ModuleCacheOperator.new(path).add_path_module(module_name)
end
|