Sha256: 980d5f7c7a0fa4ec82092904d7d535765ffeedd6370c8e3086405d39891849dc

Contents?: true

Size: 905 Bytes

Versions: 17

Compression:

Stored size: 905 Bytes

Contents

# encoding: utf-8

module GithubCLI
  class Download < API

    class << self

      def all(user, repo, params, format)
        output format do
          github_api.repos.downloads.list user, repo, params
        end
      end

      def get(user, repo, id, params, format)
        output format do
          github_api.repos.downloads.get user, repo, id, params
        end
      end

      def create(user, repo, params, format)
        output format do
          github_api.repos.downloads.create user, repo, params
        end
      end

      def upload(resource, filename, format)
        output format do
          github_api.repos.downloads.upload resource, filename
        end
      end

      def delete(user, repo, id, params, format)
        output format do
          github_api.repos.downloads.delete user, repo, id, params
        end
      end
    end

  end # Download
end # GithubCLI

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
github_cli-0.5.9 lib/github_cli/apis/download.rb
github_cli-0.5.8 lib/github_cli/apis/download.rb
github_cli-0.5.7 lib/github_cli/apis/download.rb
github_cli-0.5.6 lib/github_cli/apis/download.rb
github_cli-0.5.5 lib/github_cli/apis/download.rb
github_cli-0.5.4 lib/github_cli/apis/download.rb
github_cli-0.5.3 lib/github_cli/apis/download.rb
github_cli-0.5.2 lib/github_cli/apis/download.rb
github_cli-0.5.1 lib/github_cli/apis/download.rb
github_cli-0.5.0 lib/github_cli/apis/download.rb
github_cli-0.4.4 lib/github_cli/apis/download.rb
github_cli-0.4.3 lib/github_cli/apis/download.rb
github_cli-0.4.2 lib/github_cli/apis/download.rb
github_cli-0.4.1 lib/github_cli/apis/download.rb
github_cli-0.4.0 lib/github_cli/apis/download.rb
github_cli-0.3.1 lib/github_cli/apis/download.rb
github_cli-0.3.0 lib/github_cli/apis/download.rb