Sha256: 9e3c7ce52fc63dcada0243743377d28db529cec31ac43e7402155e853d0617ab
Contents?: true
Size: 615 Bytes
Versions: 1
Compression:
Stored size: 615 Bytes
Contents
# frozen_string_literal: true module BitBucket class Repos::Download < API REQUIRED_KEY_PARAM_NAMES = %w[commit_hash].freeze def get(user_name, repo_name, params = {}) _update_user_repo_params(user_name, repo_name) _validate_user_repo_params(user, repo) unless user? && repo? # normalize! params # assert_required_keys(REQUIRED_KEY_PARAM_NAMES, params) # https://bitbucket.org/jhanley85/eternum_canvas_demo/get/fd931f96f12d.zip "https://bitbucket.org/#{user}/#{repo.downcase}/get/#{params[:commit_hash]}.tar.gz" end end # Repos::Keys end # BitBucket
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bitbuckets-0.2.0 | lib/bitbucket_rest_api/repos/download.rb |