Sha256: d43fc28a07d2f6ed8d3cfc36dd0dcb49ecbcab3dc495f1804b73f8a43bd607f2

Contents?: true

Size: 942 Bytes

Versions: 11

Compression:

Stored size: 942 Bytes

Contents

# encoding: utf-8

module GithubCLI
  class Reference < API

    class << self

      def list(user, repo, params, format)
        output format do
          github_api.git_data.references.list user, repo, params
        end
      end

      def get(user, repo, ref, params, format)
        output format do
          github_api.git_data.references.get user, repo, ref, params
        end
      end

      def create(user, repo, params, format)
        output format do
          github_api.git_data.references.create user, repo, params
        end
      end

      def update(user, repo, ref, params, format)
        output format do
          github_api.git_data.references.update user, repo, ref, params
        end
      end

      def delete(user, repo, ref, params, format)
        output format do
          github_api.git_data.references.delete user, repo, ref, params
        end
      end
    end

  end # Reference
end # GithubCLI

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
github_cli-0.5.9 lib/github_cli/apis/reference.rb
github_cli-0.5.8 lib/github_cli/apis/reference.rb
github_cli-0.5.7 lib/github_cli/apis/reference.rb
github_cli-0.5.6 lib/github_cli/apis/reference.rb
github_cli-0.5.5 lib/github_cli/apis/reference.rb
github_cli-0.5.4 lib/github_cli/apis/reference.rb
github_cli-0.5.3 lib/github_cli/apis/reference.rb
github_cli-0.5.2 lib/github_cli/apis/reference.rb
github_cli-0.5.1 lib/github_cli/apis/reference.rb
github_cli-0.5.0 lib/github_cli/apis/reference.rb
github_cli-0.4.4 lib/github_cli/apis/reference.rb