Sha256: aa1e8d284c47206aa94739bc3122ac12af42548b788c91a6550cc7d803814a88

Contents?: true

Size: 610 Bytes

Versions: 9

Compression:

Stored size: 610 Bytes

Contents

# encoding: utf-8

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

9 entries across 9 versions & 2 rubygems

Version Path
zz_bitbucket_rest_api-0.1.11 lib/bitbucket_rest_api/repos/download.rb
zz_bitbucket_rest_api-0.1.10 lib/bitbucket_rest_api/repos/download.rb
zz_bitbucket_rest_api-0.1.9 lib/bitbucket_rest_api/repos/download.rb
zz_bitbucket_rest_api-0.1.8 lib/bitbucket_rest_api/repos/download.rb
bitbucket_rest_api2-0.9.5 lib/bitbucket_rest_api/repos/download.rb
bitbucket_rest_api2-0.9.1 lib/bitbucket_rest_api/repos/download.rb
bitbucket_rest_api2-0.2.2 lib/bitbucket_rest_api/repos/download.rb
bitbucket_rest_api2-0.2.1 lib/bitbucket_rest_api/repos/download.rb
bitbucket_rest_api2-0.2.0 lib/bitbucket_rest_api/repos/download.rb