Method: DYAutomate::DYAutomateConfig#clone_git

Defined in:
lib/DYAutomate/CustomConfig/DYAutomateConfig.rb

#clone_gitObject



129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# File 'lib/DYAutomate/CustomConfig/DYAutomateConfig.rb', line 129

def clone_git
  check_git_dir
  if @detail_git_tag && @detail_git
    url = "#{@detail_git} --branch #{@detail_git_tag}"
    # url = "#{@git} "
    cloneOk = system "git clone #{url} #{@@configGitClonePath}"
    if cloneOk
      puts "clone #{url}成功。。。"
    else
      puts "clone #{url}失败!!"
    end
  else
    puts
  end
end