Sha256: ede6fcfa7244f2eb67d744ebe2564f39b4856b3dd67d88a8fd1f6dd8b43fa832

Contents?: true

Size: 929 Bytes

Versions: 3

Compression:

Stored size: 929 Bytes

Contents

# encoding: utf-8

module GithubCLI
  class Key < API

    class << self

      def all(user, repo, params, options)
        output options do
          github_api(options).repos.keys.list user, repo, params
        end
      end

      def get(user, repo, id, params, options)
        output options do
          github_api(options).repos.keys.get user, repo, id, params
        end
      end

      def create(user, repo, params, options)
        output options do
          github_api(options).repos.keys.create user, repo, params
        end
      end

      def edit(user, repo, id, params, options)
        output options do
          github_api(options).repos.keys.edit user, repo, id, params
        end
      end

      def delete(user, repo, id, params, options)
        output options do
          github_api(options).repos.keys.delete user, repo, id, params
        end
      end
    end

  end # Key
end # GithubCLI

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
github_cli-0.6.2 lib/github_cli/apis/key.rb
github_cli-0.6.1 lib/github_cli/apis/key.rb
github_cli-0.6.0 lib/github_cli/apis/key.rb