88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
# File 'lib/big_keeper/service/module_service.rb', line 88
def del(path, user, module_name, name, type)
home_branch_name = "#{GitflowType.name(type)}/#{name}"
Logger.highlight("Delete branch '#{home_branch_name}' for module '#{module_name}'...")
module_full_path = BigkeeperParser.module_full_path(path, user, module_name)
StashService.new.stash(module_full_path, home_branch_name, module_name)
GitOperator.new.checkout(module_full_path, GitflowType.base_branch(type))
module_git = BigkeeperParser.module_git(module_name)
PodfileOperator.new.find_and_replace("#{path}/Podfile",
module_name,
ModuleType::GIT,
GitInfo.new(module_git, GitType::BRANCH, GitflowType.base_branch(type)))
end
|