Method: Taeval::GitCheckout::BitbucketRepo#clone
- Defined in:
- lib/taeval/git_checkout/bitbucket_repo.rb
#clone ⇒ Object
52 53 54 55 56 57 58 59 60 |
# File 'lib/taeval/git_checkout/bitbucket_repo.rb', line 52 def clone url = "https://#{@token}@bitbucket.org/#{@user}/#{@repo}.git" cmd = "git clone #{url} --branch=#{@branch} #{@solution}/#{@repo}" stdout, stderr, status = Open3.capture3(cmd) @output.print "cloning #{url}", stdout, stderr @reporter.add(repo: @repo, runner: :git_checkout, msg: "#{status}; #{stderr}") if status != 0 end |