in lib/cell_manager.rb [129:155]
def gdk_build(cell)
cell_gdk_root = directory_for_cell(cell)
if Dir.exist?(cell_gdk_root)
write_cell_config(cell_gdk_root, cell)
else
GDK::Output.info("Cloning into GDK for #{cell[:id]}")
sh = GDK::Shellout.new(*%W[git clone
sh.execute
return false unless sh.success?
sh = GDK::Shellout.new(*%w[git remote get-url origin], chdir: GDK.root)
sh.execute
original_origin = sh.success? ? sh.read_stdout.chomp : 'https://gitlab.com/gitlab-org/gitlab-development-kit.git'
sh = GDK::Shellout.new(*%W[git remote set-url origin
sh.execute
return false unless sh.success?
write_cell_config(cell_gdk_root, cell)
return false unless gdk_install(cell)
end
true
end